Changed in ColorSync 2.5
The ColorSync bitmap data type
CMBitmap
includes a field that identifies the color space in which the color values of the bitmap image are expressed. The following enumeration defines the types of packing for a color space's storage format. The enumeration also defines an alpha channel that can be added as a component of a color value to define the degree of opacity or transparency of a color. These constants are combined with the constants described in
Abstract Color Space Constants
to create values that identify a bitmap's color space. Your application does not specify color packing constants directly, but rather uses the combined constants, which are described in
Color Space Constants With Packing Formats
.
enum {
cmNoColorPacking = 0x0000,
cmAlphaSpace = 0x0080,
cmWord5ColorPacking = 0x0500,
cmLong8ColorPacking = 0x0800,
cmLong10ColorPacking = 0x0a00,
cmAlphaFirstPacking = 0x1000,
cmOneBitDirectPacking = 0x0b00
cmAlphaLastPacking = 0x0000,
cm24_8ColorPacking = 0x2100,
cm32_8ColorPacking = cmLong8ColorPacking,
cm40_8ColorPacking = 0x2200,
cm48_8ColorPacking = 0x2300,
cm56_8ColorPacking = 0x2400,
cm64_8ColorPacking = 0x2500,
cm32_16ColorPacking = 0x2600,
cm32_32ColorPacking = 0x2700,
cm48_16ColorPacking = 0x2900,
cm64_16ColorPacking = 0x2A00
};