Layer.independProvinceImage

Function/Meaning

Canceling sharing of area images

Type
Layerclassmethod of
Syntax
independProvinceImage(copy=true)
Arguments
copy

Specifies whether to copy the original image when unsharing.
If true is specified, the original image will be copied.
If false is specified, the original image will not be copied and the content of the image will be undefined.

Return value
None (void)
Explanation

Forcibly cancels the sharing state of the area image.
Kirikiri When you copy an entire image to another layer with assignImages etc., the same image will be shared without actually copying the image buffer.
Normally, this sharing state is automatically released just before you try to make changes to the image, but you can force it to be released with this method.
If you specify false for the copy argument, the image is unshared, but the original image is not guaranteed to be inherited (the content of the image is undefined), but the unsharing is done faster. can do.
Since it is not necessary to inherit the original image when rewriting the entire image of the layer, it may be more efficient to call this method with false specified in advance before drawing.
This method does nothing if the image is not shared.