![]() |
CMConvertRGBToGray |
||||
Header: | CMApplication.h | Carbon status: | Supported | |
Converts colors specified in the RGB color space to equivalent colors defined in the Gray color space.
CMError CMConvertRGBToGray ( const CMColor *src, CMColor *dst, UInt32 count );
A pointer to an array containing the list of colors specified in RGB space to convert to colors specified in Gray space.
A pointer to an array containing the list of colors, resulting from the conversion, as specified in the Gray color space.
The number of colors to convert.
The CMConvertRGBToGray function converts one or more colors defined in the RGB color space to equivalent colors defined in the Gray color space. Both color spaces are device dependent.
If your application does not require that you preserve the source color list, you can pass the pointer to the same color list array as the src and dst parameters and allow the CMConvertRGBToGray function to overwrite the source colors with the resulting converted color specifications.
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)