ColorCorrectPalette function

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

Syntax


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 value

If this function succeeds, the return value is TRUE.

If this function fails, the return value is FALSE.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Wingdi.h

Library

Gdi32.lib

DLL

Gdi32.dll

See also

Basic Color Management Concepts
Functions

 

 

Show: