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

ID Number: Q41464

1.x 2.03 2.10 3.00

WINDOWS

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 on Pages

4-17 to 4-18 of the "Microsoft Windows Software Development Kit

Reference Volume 1."