PATHMac OS 8 Developer Documentation > Mutlimedia and Graphics > ColorSync Manager >

Managing Color With ColorSync


Device Attribute Values for Version 2.x Profiles

The ColorSync Manager defines the structure CM2Header to represent the profile header for the version 2.x profile format defined by the ICC.The deviceAttributes field of the CM2Header structure is an array of two unsigned long values whose bits specify information about a profile. The ICC reserves the use of deviceAttributes[1] and has assigned values to bits 0 and 1. All the bits of deviceAttributes[0] are reserved for use by color management system (CMS) vendors. Figure 5-2 shows the bit assignments for the deviceAttributes field.

Figure 5-2 The deviceAttributes field of the CM2Header structure

The following enumeration defines masks your application can use to set or test bits in deviceAttributes[1] .

enum {
    /* if bit 0 is 0 then reflective media, if 1 then transparent media */
    cmReflectiveTransparentMask = 0x00000001,
    /* if bit 1 is 0 then glossy media, if 1 then matte media*/
    cmGlossyMatteMask = 0x00000002
};

Enumerator descriptions

cmReflectiveTransparentMask
Bit 0 of deviceAttributes[1] specifies whether the media is transparent or reflective. If it has the value 0, the media is reflective; if it has the value 1, the media is transparent. Use the cmReflectiveTransparentMask mask to set the transparent/reflective bit in deviceAttributes[1] or to clear all bits except the transparent/reflective bit.
cmGlossyMatteMask
Bit 1of deviceAttributes[1] specifies whether the media is glossy or matte. If it has the value 0, the media is glossy; if it has the value 1, the media is matte. Use the cmGlossyMatteMask mask to set the glossy/matte bit in deviceAttributes[1] or to clear all bits except the glossy/matte bit.

© 1988-1999 Apple Computer, Inc. — (Last Updated 20 Jan 99)