ImageData::Initialize

ImageData::Initialize
void Initialize(ImageFormat format, UInt32 width, UInt32 height, UPInt pitch, UPInt dataSize, UByte* pdata = 0);
Description

Initialize functions used to completely re-initialize ImageData, clearing all values, changing format and potentially allocating the needed number of planes.

Parameters
Parameters 
Description 
ImageFormat format 
The format of the image. See ImageFormat
UInt32 width 
The width of the image in pixels. 
UInt32 height 
The height of the image in pixels. 
UPInt pitch 
The pitch of the image. 
UPInt dataSize 
The size of pdata in bytes. 
UByte* pdata = 0 
Pointer to the first byte of image data in memory.