Carbon


CMConvertXYZToLuv

Header: CMApplication.h Carbon status: Supported

Converts colors specified in the XYZ color space to the L*u*v* color space.

CMError CMConvertXYZToLuv (
    const CMColor *src, 
    const CMXYZColor *white, 
    CMColor *dst, 
    UInt32 count
);
Parameter descriptions
src

A pointer to an array containing the list of XYZ colors to convert to L*u*v* colors.

white

A pointer to a reference white point.

dst

A pointer to an array containing the list of colors represented in L*u*v* color space resulting from the conversion.

count

The number of colors to convert.

DISCUSSION

The CMConvertXYZToLuv function converts one or more colors defined in the XYZ color space to equivalent colors defined in the L*u*v* 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 and dst parameters and allow the CMConvertXYZToLuv function to overwrite the source colors with the resulting converted color specifications.

AVAILABILITY

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)