Important: The information in this document is obsolete and should not be used for new development.
CMConvertXYZToLab
Converts colors specified in the XYZ color space to the L*a*b* color space.
pascal CMError CMConvertXYZToLab ( const CMColor *src, const CMXYZColor *white, CMColor *dst, unsigned long count);
src
- A pointer to an array containing the list of XYZ colors to convert to L*a*b* colors.
white
- A pointer to a reference white point.
dst
- A pointer to an array containing the list of L*a*b* colors resulting from the conversion.
count
- 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.
DISCUSSION
TheCMConvertXYZToLab
function converts one or more colors defined in the XYZ color space to equivalent colors defined in the L*a*b* 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
src
anddst
parameters and allow theCMConvertXYZToLab
function to overwrite the source colors with the resulting converted color specifications.SEE ALSO
For information about the color conversion routines in previous versions of ColorSync, see "Converting Between Color Spaces" (page 3-143).