![]() |
CMGetNamedColorName |
||||
Header: | CMApplication.h | Carbon status: | Supported | |
Obtains a named color name for a specific named color index from a named color space profile.
CMError CMGetNamedColorName ( CMProfileRef prof, UInt32 index, StringPtr name );
A profile reference of type CMProfileRef to a named color space profile to obtain a named color name from.
An index value for a named color to obtain the color name for.
A pointer to a Pascal string. On return, a color name string.
Based on the passed color name index, the CMGetNamedColorName function does a lookup into the named color tag and returns the name. If the index is greater than the number of named colors, CMGetNamedColorName 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)