Layer.independProvinceImage

機能/意味
Unsharing area image
タイプ
Layerクラスのメソッド
構文
independProvinceImage(copy=true)
引数
copy  Specify whether to copy the original image when releasing the sharing status.
 Specifying true copies the original image. If false is specified, the original image will not be copied and the contents of the image will be undefined.
戻り値
なし (void)
説明
 Forcibly cancels the sharing status of the area image.
 Kirikiri will share the same image without actually copying the image buffer if the entire image is copied to another layer using assignImages.
 Normally, this sharing state is automatically released just before trying to make changes to the image, but this method can be forcibly released.
 If you specify false for the copy argument, the sharing of the image will be canceled, but it will not be guaranteed to inherit the original image (the contents of the image will be undefined), but the sharing will be canceled faster can do. When rewriting the entire layer image, it is not necessary to inherit the original image, so it may be more efficient to call this method with false specified before drawing.
 This method does nothing if the image is not shared.