ImageData::Initialize

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

Initialize initializes the ImageData object to the specified format, size and data. Image format must have only one data plane.

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