ColorCorrectPalette

[This is preliminary documentation and subject to change.]

The ColorCorrectPalette function corrects the entries of a palette using the ICM 2.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 ICM 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.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Requires Windows 98.
  Windows CE: Unsupported.
  Header: Declared in wingdi.h.
  Import Library: Use gdi32.lib.

See Also

Color Management Overview, ICM 2.0 Functions