Carbon


Device Attribute Values for Version 2.x Profiles

Header: CMICCProfile.h

Define masks your application can use to set or test bits in the deviceAttributes field of the CM2Header structure.

enum {
    cmReflectiveTransparentMask = 1,
    cmGlossyMatteMask = 2
};

Constant 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.

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.


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