UpdateColors


VOID UpdateColors(WORD wStartX, WORD wStartY, WORD wExtX, WORD wExtY, 
    LPWORD lpTranslate)

Redraws all pixels in a region on the display surface using the colors specified in the given translation table. For each pixel in the region, the function reads the pixel's color index, translates the index, and writes the translated index back to the original position.

A graphics driver must export the GetPalette function if the RC_PALETTE bit is set in the dpRaster member of the driver's GDIINFO structure.

wStartX and wStartY

Coordinates of the upper-left corner of the region to update.

wExtX and wExtY

Width of the rectangular region to update in pixels.

lpTranslate

Address of an array of color indices.

The export ordinal for this function is 26.

GDI assumes that the display origin is in the upper-left corner of the screen.