Layer.mainImageBufferForWrite

機能/意味
Main image buffer pointer (for writing)
タイプ
Layerクラスのプロパティ (読み出し専用)
説明
 Represents a pointer to the upper left corner of the main image buffer (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 Layer.mainImageBuffer, the value obtained can be written to the pointer obtained by this property. The same image is shared between multiple layers inside Kirikiri, but if you refer to this property, the sharing state will be released.
 Returns NULL (0) if no image is assigned to the layer.
 The image size is represented by the Layer.imageWidth and Layer.imageHeight properties.
 See Layer.mainImageBufferPitch for pointer calculation.
参照
Layer.mainImageBuffer
Layer.mainImageBufferPitch