- Function/Meaning
-
Drawing method
- Type
-
Layer class property (read/write)
- Description
-
Represents the drawing method for the layer. You can also set the value.
In KiriKiri 2.23 beta 1 and earlier, it was called the "drawing surface".
- If dfAlpha or dfBoth is specified, the image is treated as an image with an alpha channel and drawn. dfBoth and dfAlpha are identical. The layer types corresponding to this drawing method are ltTransparent or ltAlpha.
- If dfAddAlpha is specified, the image is treated as an image with an additive alpha channel and drawn. The layer type corresponding to this drawing method is ltAddAlpha.
- If dfOpaque or dfMain is specified, all images in the layer are treated as completely opaque and drawn. The layer types corresponding to this drawing method are ltOpaque, ltCoverRect, or layer types that perform arithmetic/logical operations such as ltAdditive.
- If dfMask is specified, the mask image (alpha channel) is targeted for drawing.
- If dfProvince is specified, the province image is targeted for drawing.
- If dfAuto is specified, the drawing method is automatically determined according to the current Layer.type property. The drawing method of a newly created layer is dfAuto.
Some methods may not be operable depending on the value of this property.
- Reference
-
Layer.type