![]() |
CMGetNamedColorValue |
||||
Header: | CMApplication.h | Carbon status: | Supported | |
Obtains device and PCS color values for a specific color name from a named color space profile.
CMError CMGetNamedColorValue ( CMProfileRef prof, StringPtr name, CMColor *deviceColor, CMColor *PCSColor );
A profile reference of type CMProfileRef to a named color space profile to obtain color values from.
A pointer to a Pascal string. You supply a color name string for the color to get information for.
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 color name, the CMGetNamedColorValue function does a lookup into the named color tag and, if the name is found in the tag, returns device and color PCS values. Otherwise, CMGetNamedColorValue 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)