![]() |
CMBitmap |
Header: CMApplication.h |
struct CMBitmap { char *image; SInt32 width; SInt32 height; SInt32 rowBytes; SInt32 pixelSize; CMBitmapColorSpace space; SInt32 user1; SInt32 user2; };
A pointer to a bit image.
The width of the bit image, that is, the number of pixels in a row.
The height of the bit image, that is, the number of rows in the image.
The offset in bytes from one row of the image to the next.
The number of bits per pixel. The pixel size should correspond to the packing size specified in the space field. This requirement is not enforced as of ColorSync version 2.5, but it may be enforced in future versions.
The color space in which the colors of the bitmap image are specified. For a description of the possible color spaces for color bitmaps, see
Not used by ColorSync. It is recommended that you set this field to 0.
Not used by ColorSync. It is recommended that you set this field to 0.
The ColorSync Manager defines a bitmap structure of type CMBitmap to describe color bitmap images. When your application calls the function
For QuickDraw GX, an image can have an indexed bitmap to a list of colors. The ColorSync Manager does not support indexed bitmaps in the same way QuickDraw GX does. ColorSync supports indexed bitmaps only when the cmNamedIndexed32Space color space constant is used in conjunction with a named color space profile.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)