ColorCorrectPalette function (wingdi.h)

The ColorCorrectPalette function corrects the entries of a palette using the WCS 1.0 parameters in the specified device context.

Syntax

BOOL ColorCorrectPalette(
  HDC      hdc,
  HPALETTE hPal,
  DWORD    deFirst,
  DWORD    num
);

Parameters

hdc

Specifies a device context whose WCS parameters to use.

hPal

Specifies the handle to the palette to be color corrected.

deFirst

Specifies the first entry in the palette to be color corrected.

num

Specifies the number of entries to color correct.

Return value

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header wingdi.h
Library Gdi32.lib
DLL Gdi32.dll

See also