Bitmap.bufferForWrite

機能/意味
Image buffer pointer (for writing)
タイプ
Bitmapクラスのプロパティ (読み出し専用)
説明
 Represents a pointer to the upper left corner of the image buffer of the image (a 32bpp bitmap containing color and mask (opacity) information).
 This property is to provide a means of direct access to the image buffer for plugins etc.
 It is returned as an integer type, but please use it by casting it to an appropriate type (unsigned long * etc.) in plug-ins.
 Unlike Bitmap.buffer, the pointer obtained by this property can be written with a value. The same image is shared between multiple objects inside Kirikiri, but if you refer to this property, the sharing state will be released.
 The image size is represented by the Bitmap.width and Bitmap.height properties.
 See Bitmap.bufferPitch for pointer calculation.
参照
Bitmap.buffer
Bitmap.bufferPitch