INFO: Background Colors Affect BitBlt() from Mono to Color

ID: Q41464


The information in this article applies to:


SUMMARY

When using BitBlt() to convert a monochrome bitmap to a color bitmap, GDI transforms all white bits (1) to the background color of the destination device context (DC). GDI transforms all black bits (0) to the text (or foreground) color of the destination DC.

When using BitBlt() to convert a color bitmap to a monochrome bitmap, GDI sets to white (1) all pixels that match the background color of the source DC. All other bits are set to black (0).

These features are mentioned in the BitBlt() documentation. manual.

Additional query words: 3.00 3.10 3.50 4.00 win16sdk


Keywords          : kbNTOS350 kbNTOS351 kbSDKWin32 kbWinOS310 kbWinOS95 kbDSupport kbWinOS300 
Version           : WINDOWS:3.0,3.1,95; winnt:3.5,3.51
Platform          : WINDOWS winnt 
Issue type        : kbinfo 

Last Reviewed: July 14, 1999