Bitmap.buffer

Function/Meaning
Image buffer pointer
Type
Property of the Bitmap class (read-only)
Description
Represents a pointer to the top-left corner of the image buffer (a 32bpp bitmap containing color and mask (opacity) information).
This property exists to provide a means of direct access to the image buffer for plugins and other purposes.
It is returned as an integer type, but in plugins, please cast it to an appropriate type (such as const unsigned long *, etc.) before use.
Do not write values to the pointer obtained with this property. You can write to the pointer if it was obtained via Bitmap.bufferForWrite.
The image size is represented by the Bitmap.width and Bitmap.height properties.
Please refer to Bitmap.bufferPitch for the pointer calculation method.
Reference
Bitmap.bufferForWrite
Bitmap.bufferPitch