Product Home Class IndexDownload

CK_ImageFrame

CK_Object
   |
   +----CK_ImageFrame

Represents a single frame in a CK_AnimatedImage. An image frame is created from a CK_StaticImage, and can represent the entire image, or just a portion of it.


Factory Methods

createFromImage
Creates an image frame from an entire CK_StaticImage, or a portion of a CK_StaticImage.

Creates an image frame from a static image. To use the entire image as the frame, set left, top, right, and bottom to zero. If takeOwnership is TRUE, then the image frame will take ownership of the static image.

Return Value
Returns a pointer to the CK_ImageFrame object created.

Parameters

image
The CK_StaticImage used by the frame.
left
Specifies the x-coordinate of the upper-left corner of the rectangle.
top
Specifies the y-coordinate of the upper-left corner of the rectangle.
right
Specifies the x-coordinate of the lower-right corner of the rectangle.
bottom
Specifies the y-coordinate of the lower-right corner of the rectangle.
takeOwnership
If TRUE, the image frame takes ownership of the CK_StaticImage.