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

Managing Color With ColorSync


Col or Space Constants With Packing Formats

Changed in ColorSync 2.5

The following enumeration defines constants for color spaces which can specify color values for a bitmap image. As a rule, these constants include a packing format, defined in Color Packing for Color Spaces . You can use these constants to set the space field of the CMBitmap type definition identifies the color space in which the colors of the bitmap image are specified, as described in Abstract Color Space Constants .

enum {
    cmGray16Space           = cmGraySpace,
    cmGrayA32Space          = cmGrayASpace,
    cmRGB16Space            = cmWord5ColorPacking + cmRGBSpace,
    cmRGB24Space            = cm24_8ColorPacking + cmRGBSpace,
    cmRGB32Space            = cm32_8ColorPacking + cmRGBSpace,
    cmRGB48Space            = cm48_16ColorPacking + cmRGBSpace,
    cmARGB32Space           = cm32_8ColorPacking + cmAlphaFirstPacking + cmRGBASpace,
    cmRGBA32Space           = cm32_8ColorPacking + cmAlphaFirstPacking + cmRGBASpace,
    cmCMYK32Space           = cm32_8ColorPacking + cmCMYKSpace,
    cmCMYK64Space           = cm64_16ColorPacking + cmCMYKSpace,
    cmHSV32Space            = cmLong10ColorPacking + cmHSVSpace,
    cmHLS32Space            = cmLong10ColorPacking + cmHLSSpace,
    cmYXY32Space            = cmLong10ColorPacking + cmYXYSpace,
    cmXYZ32Space            = cmLong10ColorPacking + cmXYZSpace,
    cmLUV32Space            = cmLong10ColorPacking + cmLUVSpace,
    cmLAB24Space            = cm24_8ColorPacking + cmLABSpace,
    cmLAB32Space            = cmLong10ColorPacking + cmLABSpace,
    cmLAB48Space            = cm48_16ColorPacking + cmLABSpace,
    cmGamutResult1Space     = cmOneBitDirectPacking + cmGamutResultSpace
    cmNamedIndexed32Space   = cm32_32ColorPacking + cmNamedIndexedSpace,
    cmMCFive8Space          = cm40_8ColorPacking + cmMCFiveSpace,
    cmMCSix8Space           = cm48_8ColorPacking + cmMCSixSpace,
    cmMCSeven8Space         = cm56_8ColorPacking + cmMCSevenSpace,
    cmMCEight8Space         = cm64_8ColorPacking + cmMCEightSpace
};

Enumerator descriptions

cmGray16Space
A luminance color space with a single 16-bit component, gray.
cmGrayA32Space
A luminance color space with two components, a gray component followed by an alpha channel component. Each component value is 16 bits.
cmRGB16Space
An RGB color space composed of red, green, and blue components whose values are packed with 5 bits of storage per component. The storage size for a color value expressed in this color space is 16 bits, with the high-order bit not used.
cmRGB24Space
An RGB color space composed of red, green, and blue components whose values are packed with 8 bits of storage per component. The storage size for a color value expressed in this color space is 24 bits.
cmRGB32Space
An RGB color space composed of red, green, and blue components whose values are packed with 8 bits of storage per component. The storage size for a color value expressed in this color space is 32 bits, with bits 24-31 not used.
cmRGB48Space
An RGB color space composed of red, green, and blue components whose values are packed with 16 bits of storage per component. The storage size for a color value expressed in this color space is 48 bits.
cmARGB32Space
An RGB color space composed of red, green, and blue color value components preceded by an alpha channel component whose values are packed with 8 bits of storage per component. The storage size for a color value expressed in this color space is 32 bits.
cmRGBA32Space
An RGB color space composed of red, green, and blue color value components, followed by an alpha channel component. Values are packed with 8 bits of storage per component. The storage size for a color value expressed in this color space is 32 bits.
cmCMYK32Space
A CMYK color space composed of cyan, magenta, yellow, and black components whose values are packed with 8 bits of storage per component. The storage size for a color value expressed in this color space is 32 bits.
cmCMYK64Space
A CMYK color space composed of cyan, magenta, yellow, and black components whose values are packed with 16 bits of storage per component. The storage size for a color value expressed in this color space is 64 bits.
cmHSV32Space
An HSV color space composed of hue, saturation, and value components whose values are packed with 10 bits of storage per component. The storage size for a color value expressed in this color space is 32 bits, with the high-order 2 bits not used.
cmHLS32Space
An HLS color space composed of hue, lightness, and saturation components whose values are packed with 10 bits of storage per component. The storage size for a color value expressed in this color space is 32 bits, with the high-order 2 bits not used.
cmYXY32Space
A Yxy color space composed of Y, x, and y components whose values are packed with 10 bits of storage per component. The storage size for a color value expressed in this color space is 32 bits, with the high-order 2 bits not used.
cmXYZ32Space
An XYZ color space composed of X, Y, and Z components whose values are packed with 10 bits per component. The storage size for a color value expressed in this color space is 32 bits, with the high-order 2 bits not used.
cmLUV32Space
An L*u*v* color space composed of L*, u*, and v* components whose values are packed with 10 bits per component. The storage size for a color value expressed in this color space is 32 bits, with the high-order 2 bits not used.
cmLAB24Space
An L*a*b* color space composed of L*, a*, and b* components whose values are packed with 8 bits per component. The storage size for a color value expressed in this color space is 24 bits. The 8-bit unsigned a* and b* channels are interpreted numerically as ranging from -128.0 to approximately 128.0.
cmLAB32Space
An L*a*b* color space composed of L*, a*, and b* components whose values are packed with 10 bits per component. The storage size for a color value expressed in this color space is 32 bits, with the high-order 2 bits not used. The 10-bit unsigned a* and b* channels are interpreted numerically as ranging from -128.0 to approximately 128.0.
cmLAB48Space
An L*a*b* color space composed of L*, a*, and b* components whose values are packed with 16 bits per component. The storage size for a color value expressed in this color space is 48 bits. The 16-bit unsigned a* and b* channels are interpreted numerically as ranging from -128.0 to approximately 128.0.
cmGamutResult1Space
A gamut result color space for the resulting bitmap pointed to by the resultBitMap field of the function CWCheckBitMap , with 1-bit direct packing. A pixel in the returned bitmap with value 1 (displayed as black) indicates an out-of-gamut color, while a pixel value of 0 (white) indicates a color that is in gamut.
cmNamedIndexed32Space
A color space where each color is stored as a single 32-bit value, specifying an index into a named color space. The storage size for a color value expressed in this color space is 32 bits.
cmMCFive8Space
A five-channel multichannel (HiFi) data color space, whose values are packed with 8 bits per component. The storage size for a color value expressed in this color space is 40 bits.
cmMCSix8Space
A six-channel multichannel (HiFi) data color space, whose values are packed with 8 bits per component. The storage size for a color value expressed in this color space is 48 bits.
cmMCSeven8Space
A seven-channel multichannel (HiFi) data color space, whose values are packed with 8 bits per component. The storage size for a color value expressed in this color space is 56 bits.
cmMCEight8Space
A eight-channel multichannel (HiFi) data color space, whose values are packed with 8 bits per component. The storage size for a color value expressed in this color space is 64 bits.

VERSION NOTES

The constants cmRGBASpace and cmGrayASpace were moved to Abstract Color Space Constants in ColorSync version 2.5.

The constants cmGray16Space , cmGrayA32Space , cmRGB48Space , cmCMYK64Space , and cmLAB48Space were added in ColorSync version 2.5.


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