[This is preliminary documentation and subject to change.]
The TranslateColors function translates an array of colors from the source color space to the destination color space as defined by a color transform.
BOOL WINAPI TranslateColors(
HTRANSFORM hColorTransform,
PCOLOR paInputColors,
DWORD nColors,
COLORTYPE ctInput,
PCOLOR paOutputColors,
COLORTYPE ctOutput
);
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. For extended error information, call GetLastError.
If the input and the output color types are not compatible with the color transform, this function fails.
Windows NT: Requires version 5.0 or later.
Windows: Requires Windows 98.
Windows CE: Unsupported.
Header: Declared in icm.h.
Import Library: Use mscms.lib.
Color Management Overview, ICM 2.0 Functions