[This is preliminary documentation and subject to change.]
The GetPS2ColorRenderingDictionary function retrieves the PostScript Level 2 color rendering dictionary from the specified profile.
BOOL WINAPI GetPS2ColorRenderingDictionary(
HPROFILE hProfile,
DWORD dwIntent,
PBYTE pBuffer,
PDWORD pcbSize,
PBOOL pbBinary
);
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 the pBuffer parameter is NULL and the size required for the buffer is copied into pcbSize.
If this function fails, the return value is FALSE.
If the dictionary is not available in the profile, the GetPS2ColorRenderingDictionary function builds one using the profile contents. This dictionary can then be used as the operand for the PostScript Level 2 setcolorrendering operator.
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