Layer.provinceImageBufferPitch

Function/Meaning
Area image buffer pitch
Type
Layer Class Properties
Explanation

Represents the pitch (number of bytes down to the next scanline) of the image buffer of a region image (an 8bpp bitmap containing region information).
This property is there to provide a means of direct access to the image buffer for plugins etc.
As tjsuint8 is an 8-bit (1byte) integer type, the pointer to the image position (x, y) can be calculated as follows when written in C language.
(tjs
uint8 *) provideImageBuffer + y * proveinceImageBufferPitch + x
The number for this property may be slightly larger than the exact number of bytes required for the width of the image.
Note that this property can have a negative value.

Reference
Layer.provinceImageBuffer
Layer.provinceImageBufferForWrite