[This is preliminary documentation and subject to change.]
The CMTranslateRGB function translates an application-supplied RGBQuad into the device color space.
BOOL WINAPI CMTranslateRGB(
HCMTRANSFORM hcmTransform,
COLORREF ColorRef,
LPCOLORREF lpColorRef,
DWORD dwFlags
);
Value | Meaning |
---|---|
CMS_FORWARD | Use forward transform |
CMS_BACKWARD | Use reverse transform |
If this function succeeds, the return value is TRUE.
If this function fails, the return value is FALSE. The CMM should call SetLastError to set the last error to a valid error value defined in Winerror.h.
Every CMM is required to export this function.
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.
Color Management Overview, ICM 2.0 Functions