Public Member Functions | |
Constructor / Destructor | |
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 () |
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) |
Constructor / Destructor | |
CP_Bitmap (PixMapHandle inPixMap, bool inOwnsPixmap=false) | |
Getters | |
PixMapHandle | GetPixMapHandle () |
Constructor / Destructor | |
CP_Bitmap (HBITMAP inBitMap) | |
CP_Bitmap (SInt16 inWidth, SInt16 inHeight, SInt16 inColorDepth, bool inIsGrayscale=false, OSGraphicsPort inDestPort=NULL, bool inTopDown=false) | |
CP_Bitmap (SInt16 inWidth, SInt16 inHeight, SInt16 inColorDepth, CP_Palette *inPalette=NULL, OSGraphicsPort inDestPort=NULL, bool inTopDown=false) | |
Palette | |
void | CreateBitmapPalette (SInt16 inColorDepth, bool inIsGrayscale=false) |
void | SetPaletteEntry (SInt16 inIndex, const CP_RGBColor &inColor) |
Getters | |
HBITMAP | GetBitmap () |
Protected Attributes | |
CP_Palette * | fBitmapPalette |
bool | fOwnsPixmap |
PixMapHandle | fPixMap |
BITMAP | fBitMapInfo |
HBITMAP | fBitMap |
BITMAPINFOHEADER | fBitmapInfoHeaderStruct |
BITMAPINFOHEADER * | fBitmapInfoHeader |
HANDLE | fDIB |
SInt32 * | fColorTable |
char * | fBitmapBits |
Private Member Functions | |
Creator | |
void | CreateEmptyBitmap (SInt16 inWidth, SInt16 inHeight, SInt16 inColorDepth, bool inIsGrayscale=false, OSGraphicsPort inDestPort=NULL, bool inTopDown=false) |
void | CreateEmptyBitmap (SInt16 inWidth, SInt16 inHeight, SInt16 inColorDepth, CP_Palette *inPalette=NULL, OSGraphicsPort inDestPort=NULL, bool inTopDown=false) |
Getters | |
SInt32 | GetBitmapBytesNeeded (SInt16 inWidth, SInt16 inHeight, SInt16 inColorDepth) |
SInt32 | GetBitsBytesNeeded (SInt16 inWidth, SInt16 inHeight, SInt16 inColorDepth) |
|
Destructor.
|
|
Points to the bits of the Windows bitmap. |
|
Windows - Constructor. This will construct the bitmap from the passed in Windows HBITMAP.
|
|
Windows - Constructor. This will construct the bitmap from the passed in parameters.
|
|
Windows - Constructor. This will construct the bitmap from the passed in parameters.
|
|
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.
|
|
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.
|
|
Returns the MacOS pix map that is used to represent this object.
|
|
Create a color palette for use with our bitmap.
|
|
Set a color entry info our palette.
|
|
Returns the Windows HBITMAP that is used to represent this object.
|
|
Creates an empty bitmap.
|
|
Creates an empty bitmap.
|
|
Return the number of bytes needed to store our bitmap information. This includes the header info, color table and bitmap bits.
|
|
Return the number of bytes needed to store the image portion of our bitmap.
|
|
|
|
Palette used to represent the colors of this bitmap. |
|
Flag to indicate if this object owns the underlying OS bitmap/pixmap. |
|
The MacOS pix map for this object. |
|
Windows information about this bitmap. |
|
Windows HBITMAP for this object. |
|
Contains information about the Windows bitmap. |
|
Contains information about the Windows bitmap. |
|
|
|
Contains the color table for the Windows bitmap. |