DIB_SetPaletteTranslateExt


void DIB_SetPaletteTranslateExt(LPWORD lpIndexes, 
    LPPDEVICE lpDIBEngine);

Copies the translation table pointed to by the lpIndexes parameter and creates a corresponding inverse translation table. The driver uses the translation tables for mapping logical color indices to physical color indices.

lpIndexes

Address of the array containing color indices. The number of indices in the array is specified by the dpPalColors member in the device's GDIINFO structure.

lpDIBEngine

Address of PDEVICE structure that specifies color data for the display surface.

When a non-identity palette translate is being set, this function sets the PALETTE_XLAT bit in the deFlags field of the DIBENGINE structure. This function clears the PALETTE_XLAT bit when an identity translate is set. Minidrivers and the DIB engine may use this bit to decide whether palette translation is needed or not. When applicable, this bit is set or cleared for palette translation for bitmaps, brushes, pens, foreground color, background color and text color.

The export ordinal for this function is 407.