The CK_AnimatedBitmap class contains the frames of an animation. It cannot be drawn because it is simply a container to hold the bitmap data of the animation. A different class, CK_Animation, refers to an animated bitmap, can display it, and also contains the ability to control the animation. A CK_Animation has its own frame rate, and can stop or start the animation. This architecture allows many CK_Animation objects to exist at the same time, each of which can be independently stopped, started, or running at different frame rates, and all sharing the same bitmap data.
Creates a CK_AnimatedBitmap from a .can file containing a serialized CK_AnimatedImage. Returns a pointer to the CK_AnimatedBitmap created.
Parameters
- fileName
- A .can file containing a serialized CK_AnimatedImage.
Creates a CK_AnimatedBitmap from a CK_AnimatedImage. Returns a pointer to the CK_AnimatedBitmap created.
Parameters
- image
- The animated image used to create the CK_AnimatedBitmap. If the image has transparency, the CK_AnimatedBitmap will have the same transparency. If the image is 8 bits-per-pixels, the palettes in the image will be present in the CK_AnimatedBitmap.
Returns the height in pixels of the animation.
Returns the number of frames in the animation.
Returns the number of palettes held by the animation. Only animations created from 8 bits-per-pixel CK_AnimatedImages will have palettes.
Returns the width in pixels of the animation.
Returns TRUE if the animation is 8 bits-per-pixel.
Returns TRUE if the animation has transparency.