Palette Types
DirectDraw on Windows CE only supports 8-bit (256 entry) palettes. A palette can only be attached to a surface that has a matching pixel format.
Additionally, you can create palettes that do not contain a color table at all, known as index palettes. Instead of a color table, an index palette contains index values that represent locations in another palette's color table.
To create an indexed palette, specify the DDPCAPS_8BITENTRIES flag when calling the IDirectDraw4::CreatePalette method. When you create an indexed palette, you pass a pointer to an array of bytes rather than a pointer to an array of PALETTEENTRY structures. You must cast the pointer to the array of bytes to an LPPALETTEENTRY type when you use the IDirectDraw4::CreatePalette method.
Note that DirectDraw does not dereference index palette entries during blit operations.
Last updated on Thursday, April 08, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.