CMConvertYxyToXYZConverts colors specified in the Yxy color space to the XYZ color space.
pascal CMError CMConvertYxyToXYZ ( const CMColor *src, CMColor *dst, unsigned long count);
- A pointer to an array containing the list of Yxy colors to convert.
- A pointer to an array containing the list of colors, resulting from the conversion, as specified in the XYZ color space.
- The number of colors to convert.
- function result
- A result code of type CMError. See "Result Codes" (page 3-174) for a list of ColorSync-specific result codes.
DISCUSSIONThe CMConvertYxyToXYZ function converts one or more colors defined in the Yxy color space to equivalent colors defined in the XYZ color space. Both color spaces are device independent.
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
dstparameters and allow the
CMConvertYxyToXYZfunction to overwrite the source colors with the resulting converted color specifications.
SEE ALSOFor information about the color conversion routines in previous versions of ColorSync, see "Converting Between Color Spaces" (page 3-143).