Image::CreateSubImage

Image::CreateSubImage
virtual Image* CreateSubImage(const ImageRect& rect, MemoryHeap* pheap = Memory::GetGlobalHeap());
Description

CreateSubImage is called to create an Image that references a subregion of this image, which happens when GFx::ImagePackParams is used (or when loading images packed by gfxexport). Default implementation creates SubImage that references this Image for its data.

Parameters
Parameters 
Description 
const ImageRect& rect 
Sub-rectangle of the texture that is used by the image. 
MemoryHeap* pheap = Memory::GetGlobalHeap() 
The memory heap for storing the image. 
Return Value

An Image object that references the subregion of the image.