The information in this article applies to:
SYMPTOMSWhen you create and use a memory Device Context (DC) to draw and store GDI images, the bitmap displayed when transferred from the memory device context to the physical display is monochrome. All colors are converted to either black or white. CAUSE
When creating a compatible bitmap for the memory DC, the handle to the
memory DC is used as the first parameter to the call to
CreateCompatibleBitmap(). This create a monochrome bitmap because a
memory DC created with CreateCompatibleDC() is given a 1x1 monochrome bitmap as its default bitmap.
RESOLUTION
Send a physical screen DC to the CreateCompatibleBitmap() function rather than the memory DC that you plan on selecting the bitmap into.
STATUSThis behavior is by design. Additional query words: 3.10 4.00
Keywords : kbcode kbNTOS351 kbWinOS2000 kbWinOS310 kbWinOS95 kbDSupport kbSDKWin16 |
Last Reviewed: December 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |