ColorCorrectPalette
The ColorCorrectPalette function corrects the entries of a palette using the WCS 1.0 parameters in the specified device context.
BOOL WINAPI ColorCorrectPalette(
HDC hDC, HPALETTE hPalette, DWORD dwFirstEntry, DWORD dwNumOfEntries);
Parameters
- hDC
Specifies a device context whose WCS parameters to use. - hPalette
Specifies the handle to the palette to be color corrected. - dwFirstEntry
Specifies the first entry in the palette to be color corrected. - dwNumOfEntries
Specifies the number of entries to color correct.
Return Values
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE.
Requirements
** Windows NT/2000/XP/Vista:** Included in Windows 2000 and later.
** Windows 95/98/Me:** Included in Windows 98 and later.
** Header:** Declared in Wingdi.h.
** Library:** Use Gdi32.lib.