[This is preliminary documentation and subject to change.]
The CMGetPS2ColorRenderingIntent function retrieves the PostScript Level 2 color rendering intent from a profile.
BOOL WINAPI CMGetPS2ColorRenderingIntent(
HPROFILE hProfile,
DWORD dwIntent,
LPBYTE lpBuffer,
LPDWORD lpcbSize
);
INTENT_PERCEPTUAL
INTENT_SATURATION
INTENT_RELATIVE_COLORIMETRIC
INTENT_ABSOLUTE_COLORIMETRIC
For more information, see Rendering Intents.
If this function succeeds, the return value is TRUE. It also returns TRUE if it is called with lpBuffer set to NULL and the size of the required buffer is copied into lpcbSize.
If this function fails, the return value is FALSE. When this occurs, the CMM should call SetLastError to set the last error to a valid error value defined in Winerror.h.
This function is optional for all CMMs.
If a CMM does not support this function, Windows uses the default CMM to get the color rendering intent.
If the tag is not present in the profile indicated by hProfile, the CMM creates it. The resulting rendering intent can be used as the operand for the PostScript Level 2 findcolorrendering operator.
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