Product Home Class IndexDownload

CK_StaticBitmap

CK_Bitmap
   |
   +----CK_StaticBitmap

The CK_StaticBitmap class represents a simple, non-animated bitmap. The CK_StaticBitmap provides two factory methods for creating objects of this type. There are no additional member functions beyond those defined in CK_Bitmap.

See CK_Bitmap for more information.


Factory Methods

createFromFile
Creates a CK_Bitmap from a CK_Image.
createFromImage
Creates a CK_Bitmap from a CK_Image.

Inherited Methods

draw
Draws the bitmap to the Chilkat engine's render surface.
drawScaled
Draws a stretched or shrunken bitmap to the render surface.
drawTiled
Fills the render surface, or a portion of the render surface, by tiling the bitmap.
getHeight
Returns the height in pixels of the bitmap.
getNumPalettes
Returns the number of palettes contained in the bitmap.Only 8 bit-per-pixel bitmaps have palettes.
getWidth
Returns the width in pixels of the bitmap.
isPaletteBitmap
Returns TRUE if the bitmap is 8 bits-per-pixel.
isTransparent
Returns TRUE if the bitmap has transparency.

Creates a CK_StaticBitmap from a .pcx, .bmp, or .cim file. Files with the .cim extension contain a serialized CK_StaticImage object.

Parameters

fileName
The name of a file containing a static image. The factory method first creates a CK_StaticImage from the contents of the file, and then creates a CK_StaticBitmap from the CK_StaticImage. The CK_StaticBitmap is returned, and the CK_StaticImage is deleted.

Creates a CK_StaticBitmap from a CK_StaticImage. Returns a pointer to the CK_StaticBitmap created.

Parameters

image
The image used to create the CK_StaticBitmap. If the image has transparency, the CK_StaticBitmap will have the same transparency. If the image is 8 bits-per-pixels, the palettes in the image will be present in the CK_StaticBitmap.