Using Device-Independent Bitmaps and PalettesLast reviewed: November 2, 1995Article ID: Q72041 |
The information in this article applies to:
SUMMARYThe method Windows version 3.x uses to transfer colors from the color table of a device-independent bitmap (DIB) to a device-dependent bitmap (DDB) on a machine that supports palette operations depends on the value of the wUsage parameter specified in calls to the CreateDIBitmap or SetDIBits functions. Specifying DIB_RGB_COLORS matches the colors in the DIB color table to the logical palette associated with the device context (DC) listed in the function call. Specifying DIB_PAL_COLORS causes the entries in the DIB color table to not be treated as RGB values; instead, they are treated as word indexes into the logical palette associated with the DC listed in the function call. To create a device-dependent (displayable) bitmap from a DIB that retains the same colors, follow these five steps:
|
Additional reference words: 3.00 3.10 3.50 4.00 95
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |