![]() |
CMMGetIndNamedColorValue |
||||
Header: | CMMComponent.h | Carbon status: | Unsupported | |
Handles the kCMMGetIndNamedColorValue request by returning device and PCS color values from a named color space profile for a specific named color index.
CMError CMMGetIndNamedColorValue ( CMMComponentInst cmm, CMProfileRef prof, UInt32 index, CMColor *deviceColor, CMColor *PCSColor );
A handle to your CMMs storage for the instance of your component associated with the calling application or device driver.
A profile reference of type CMProfileRef to a named color space profile.
An index value for the named color to get color values for.
A pointer to a device color. On output, 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 output, an interchange color value in CMColor union format.
A CMM may respond to the kCMMGetIndNamedColorValue request code, but it is not required to do so. Most CMMs can rely on the default CMM to handle this request code adequately. The ColorSync Manager sends this request code to your CMM on behalf of an application or device driver that called the CMGetIndNamedColorValue function. The ColorSync Manager dispatches this request to the Component Manager, which calls your CMM to service the request. A CMM that handles the kCMMGetIndNamedColorValue request code typically responds by calling a CMM-defined function (for example, CMMGetIndNamedColorValue).
Based on the passed named color index, the CMMGetIndNamedColorValue function does a lookup into the named color tag of the profile whose reference is passed in the prof parameter and returns device and PCS color values. If the index is greater than the number of named colors, CMMGetIndNamedColorValue returns an error code.
CMMGetIndNamedColorValue is an API to CMMs. Use CMGetIndNamedColorValue instead. Application developers should avoid calling CMMs directly, since they may or may not support a given API.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)