Carbon


CMFixedXYZColor

Header: CMICCProfile.h

struct CMFixedXYZColor {
    Fixed X; 
    Fixed Y; 
    Fixed Z; 
    QElemPtr qLink; 
    SInt16 qType; 
    SInt16 ioTrap; 
    Ptr ioCmdAddr; 
    ProcPtr ioCompletion; 
    OSErr ioResult; 
    StringPtr ioNamePtr; 
    SInt16 ioVRefNum; 
    SInt16 ioCRefNum; 
    UInt8 speedMajor; 
    UInt8 speedMinor; 
    UInt16 cdFeatures; 
    TimeValue startTime; 
    Fixed rate; 
    gxProfilePoolAttributes attributes; 
    CMProfileRef profileRef; 
    CMProfileIdentifier identifier;
};

ColorSync uses the CMFixedXYZColor data type to specify the profile illuminant in the profile header’s white field and to specify other profile element values. Color component values defined by the Fixed type definition can be used to specify a color value in the XYZ color space with greater precision than a color whose components are expressed as CMXYZComponent data types. The Fixed data type is a signed 32-bit value. A color value expressed in the XYZ color space whose color components are of type Fixed is defined by the CMFixedXYZColor type definition.

Your application can convert colors defined in the XYZ color space between CMXYZColor data types (in which the color components are expressed as 16-bit unsigned values) and CMFixedXYZColor data types (in which the colors are expressed as 32-bit signed values). To convert color values, you use the functions CMConvertFixedXYZToXYZ and CMConvertXYZToFixedXYZ.


© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)