![]() |
CMGetIndNamedColorValue |
||||
Header: | CMApplication.h | Carbon status: | Supported | |
Obtains device and PCS color values for a specific named color index from a named color space profile.
CMError CMGetIndNamedColorValue ( CMProfileRef prof, UInt32 index, CMColor *deviceColor, CMColor *PCSColor );
A profile reference of type CMProfileRef to a named color space profile to obtain color values from.
A one-based index value for a named color.
A pointer to a device color. On return, a device color value in CMColor union format. If the profile does not contain device values, deviceColor is undefined.
A pointer to a profile connection space color. On return, an interchange color value in CMColor union format.
Based on the passed named color index, the CMGetIndNamedColorValue function does a lookup into the named color tag and returns device and PCS values. If the index is greater than the number of named colors, CMGetIndNamedColorValue returns an error code.
Supported in Carbon. Available in Carbon 1.0.2 and later when ColorSync 2.1 or later is present.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)