ImageData::GetFormatPitch

ImageData::GetFormatPitch
static UPInt SF_STDCALL GetFormatPitch(ImageFormat fmt, UInt32 width, unsigned plane = 0);
Description

GetFormatPitch returns the pitch (distance in bytes between rows) of the given image format.

Parameters
Parameters 
Description 
ImageFormat fmt 
A variable of type ImageFormat which specifies the image format. 
UInt32 width 
The width of the image. 
unsigned plane = 0 
An index value specifying the plane. 
Return Value

The pitch (distance in bytes between rows) of the given image format.