Layer.holdAlpha

機能/意味
Whether to protect the alpha channel
タイプ
Layerクラスのプロパティ (読み書き可能)
説明
 Specifies whether to protect the alpha channel in the drawing. You can also set a value.
 False by default.
 Prior to Kirikiri 2.23 beta 1, each drawing method had a parameter named hda, which behaved the same as this property, but has been separated as a property from 2.23 beta 2.
 For some drawing operations, when the Layer.face property is dfOpaque, this property can specify whether to keep the alpha channel (mask image) of the image. For many methods, setting this property to false will result in faster drawing. If the Layer.type is neither ltAlpha nor ltAddAlpha, the alpha channel of the image is not used, so it is safe to set this property to false. However, if this property is false, the alpha channel will be destroyed.

 The following methods are not affected by this property:
Layer.loadImages
Layer.loadProvinceImage
Layer.setMainPixel
Layer.setMaskPixel
Layer.setProvincePixel
Layer.piledCopy
Layer.adjustGamma(Alpha channel is always protected)
Layer.doGrayScale(Alpha channel is always protected)
Layer.flipLR
Layer.flipUD
Layer.assignImages

 The following methods are affected by this property:
Layer.copyRect
Layer.stretchCopy
Layer.affineCopy
Layer.fillRect
Layer.colorRect
Layer.drawText
Layer.operateRect
Layer.operateStretch
Layer.operateAffine