ImagePlane::SetData

ImagePlane::SetData
void SetData(UInt32 w, UInt32 h, UPInt pitch, UPInt dataSize = 0, UByte* pdata = 0);
void SetData(const ImageSize & sz, UPInt pitch, UPInt dataSize = 0, UByte* pdata = 0);
Description

SetData assigns data for the data plane of an image.

Parameters
Parameters 
Description 
UInt32 w 
Width of the image. 
UInt32 h 
Height of the image. 
UPInt pitch 
The pitch of the image. 
UPInt dataSize = 0 
The size of the image data in bytes. 
UByte* pdata = 0 
Pointer to the first byte of the image data in the memory. 
const ImageSize & sz 
The size of the image.