win32.graph.freeimage.FreeImage_GetPitch

FreeImage_GetPitch is available since version 1.0.

Prototype:

number FreeImage_GetPitch(number dib)

Description:

Get the width of the bitmap in bytes, rounded to the next 32-bit boundary, also known as pitch or stride or scan width. In FreeImage each scanline starts at a 32-bit boundary for performance reasons. This accessor in essential when using low level pixel manipulation functions (see also the chapter on Pixel access functions).

Return value:

Returns the width of the bitmap in bytes, rounded to the next 32-bit boundary, also known as pitch or stride or scan width.