CreateSub creates a sub-image of the specified parent. dstImage should not be instantiated prior to calling CreateSub. Sub image is returned in dstImage. The sub image references the parent's fData member, and the parent image must not be deleted before you are done using the sub image. You may create a sub image of a sub image, ad infinum. It'll handle the offsets. Call CATImage::ReleaseImage() when done.
Definition at line 127 of file CATImage.cpp. References AddRef(), CAT_ERR_IMAGE_INVALID_SUB_POSITION, CAT_SUCCESS, CATASSERT, CATFAILED, CATRESULT, CreateImage(), fData, fHeight, fOwnData, fParentImage, fWidth, fXOffset, and fYOffset. Referenced by CATTab::Draw(), and CATLayer::Draw().
|