Carbon


Color Space Constants With Packing Formats

Header: CMApplication.h

enum {
    cmGray8Space = 10250,
    cmGrayA16Space = 8330,
    cmGray16Space = 10,
    cmGrayA32Space = 138,
    cmGray16LSpace = 16394,
    cmGrayA32LSpace = 16522,
    cmRGB16Space = 1281,
    cmRGB16LSpace = 17665,
    cmRGB565Space = 1537,
    cmRGB565LSpace = 17921,
    cmRGB24Space = 8449,
    cmRGB32Space = 2049,
    cmRGB48Space = 10497,
    cmRGB48LSpace = 26881,
    cmARGB32Space = 6273,
    cmARGB64Space = 14977,
    cmARGB64LSpace = 31361,
    cmRGBA32Space = 2177,
    cmRGBA64Space = 10881,
    cmRGBA64LSpace = 27265,
    cmCMYK32Space = 2050,
    cmCMYK64Space = 10754,
    cmCMYK64LSpace = 27138,
    cmHSV32Space = 2563,
    cmHLS32Space = 2564,
    cmYXY32Space = 2565,
    cmXYZ24Space = 8454,
    cmXYZ32Space = 2566,
    cmXYZ48Space = 10502,
    cmXYZ48LSpace = 26886,
    cmLUV32Space = 2567,
    cmLAB24Space = 8456,
    cmLAB32Space = 2568,
    cmLAB48Space = 10504,
    cmLAB48LSpace = 26888,
    cmGamutResult1Space = 2828,
    cmNamedIndexed32Space = 10000,
    cmNamedIndexed32LSpace = 26384,
    cmMCFive8Space = 8721,
    cmMCSix8Space = 8978,
    cmMCSeven8Space = 9235,
    cmMCEight8Space = 9492
};

Constant descriptions

cmGray8Space
cmGrayA16Space
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.

cmGray16LSpace
cmGrayA32LSpace
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.

cmRGB16LSpace
cmRGB565Space
cmRGB565LSpace
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.

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

cmARGB64Space
cmARGB64LSpace
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.

cmRGBA64Space
cmRGBA64LSpace
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.

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

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

cmXYZ48Space
cmXYZ48LSpace
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.

cmLAB48LSpace
cmGamutResult1Space

A gamut result color space for the resulting bitmap pointed to by the resultBitMap field of the function CWMatchColors, 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.

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

This 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”.

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.


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