virtual Image* CreateSubImage(const ImageRect& rect, MemoryHeap* pheap = Memory::GetGlobalHeap());
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   | 
 
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.   | 
An Image object that references the subregion of the image.