Public Member Functions | |
Constructor / Destructor | |
CP_Bitmap (PixMapHandle inPixMap, bool inOwnsPixmap=false) | |
virtual | ~CP_Bitmap () |
Destructor. | |
Getters | |
SInt16 | GetColorDepth () |
CP_Palette * | GetPalette () |
SInt32 | GetRowBytes () |
char * | GetPixelsPtr () |
CP_RGBColor | GetPixelColor (SInt16 inCol, SInt16 inRow) |
SInt16 | Width () |
SInt16 | Height () |
SInt16 | GetNumberBitPlanes () |
SInt16 | GetPixelSize () |
PixMapHandle | GetPixMapHandle () |
Lockers | |
void | Lock () |
void | Unlock () |
Setters | |
void | SetPixel (SInt16 inCol, SInt16 inRow, SInt16 inPaletteIndex) |
void | SetPixel (SInt16 inCol, SInt16 inRow, SInt32 inColor) |
void | SetPixelColor (SInt16 inCol, SInt16 inRow, CP_RGBColor &inColor) |
void | SetPalette (CP_Palette *inPalette) |
Protected Attributes | |
CP_Palette * | fBitmapPalette |
bool | fOwnsPixmap |
PixMapHandle | fPixMap |
|
MacOS - Constructor. This will construct the bitmap from the passed in MacOS PixMap.
|
|
Destructor.
|
|
Returns the color depth of the bitmap.
|
|
Returns any palette associated with this bitmap.
|
|
Returns the number of row bytes of the bitmap.
|
|
Returns a pointer to the first bit of the image data.
|
|
Returns the color of the pixel as the passed in row and column coordinates.
|
|
The width of the bitmap.
|
|
The height of the bitmap.
|
|
Returns the number of bit planes that make up th bitmap.
|
|
Returns the number of bits in a color component.
|
|
Returns the MacOS pix map that is used to represent this object.
|
|
Locks the bitmap for direct pixel access. If the underlying OS doesn't require this, then nothing is done.
|
|
Unlocks the bitmap. If the underlying OS doesn't require this, then nothing is done. This call must be preceded by a Lock() call.
|
|
Sets the color of the pixel at the passed in coordinates.
|
|
Sets the color of the pixel at the passed in coordinates.
|
|
Sets the color of the pixel at the passed in coordinates using a CP_RGBColor.
|
|
Sets the palette associated with this bitmap. Note: palettes are only used if the bit depth is 8 or less.
|
|
|
|
Palette used to represent the colors of this bitmap. |
|
Flag to indicate if this object owns the underlying OS bitmap/pixmap. |