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