bitblt a bitmap greater than screen resolution, bitmap doesn't display correctly
-
I have created a DDB bitmap of size (1024x2048) and have selected it into a compatible DC. Here is the code: hdc = GetDC (hwnd); hBitmap = CreateCompatibleBitmap (hdc, 1024, 2048); hdcMem = CreateCompatibleDC (hdc); SelectObject( hdcMem, hBitmap); ReleaseDC (hwnd,hdc); My problem is when I draw on the hdcMem and then bitblt it to my Window DC. Everything works fine until I try a bitblt with an X coordinate (hdcMem) greater than 800. My current screen Resolution is 800x600. Why is this? How can I fix it? This is not a problem for the Y axis. I suspect that the hdcMem has some sort of limitations based on the current resolution, but I can't figure it out. What happens is that the bitmap seems to be cut in half. The bitmap displays fine up to the 800 point, but after that, it doesn't show at all.
-
I have created a DDB bitmap of size (1024x2048) and have selected it into a compatible DC. Here is the code: hdc = GetDC (hwnd); hBitmap = CreateCompatibleBitmap (hdc, 1024, 2048); hdcMem = CreateCompatibleDC (hdc); SelectObject( hdcMem, hBitmap); ReleaseDC (hwnd,hdc); My problem is when I draw on the hdcMem and then bitblt it to my Window DC. Everything works fine until I try a bitblt with an X coordinate (hdcMem) greater than 800. My current screen Resolution is 800x600. Why is this? How can I fix it? This is not a problem for the Y axis. I suspect that the hdcMem has some sort of limitations based on the current resolution, but I can't figure it out. What happens is that the bitmap seems to be cut in half. The bitmap displays fine up to the 800 point, but after that, it doesn't show at all.