Specifies whether to copy the original image when disconnecting the shared state.
If true is specified, the original image is copied. If false is specified, the original image is not copied and the image content becomes undefined.
Return Value
None (void)
Description
Forcibly disconnects the shared state of the layer image.
In KiriKiri, when an entire image is copied to another layer using assignImages or similar methods, the image buffer is not actually copied; instead, the same image is shared.
Normally, this shared state is automatically disconnected just before an attempt is made to modify the image, but it can be forcibly disconnected using this method.
If false is specified for the copy argument, the image sharing is disconnected, but there is no guarantee that the original image will be preserved (the image content becomes undefined). However, the disconnection can be performed faster. If you are going to overwrite the entire layer image, there is no need to preserve the original image. Therefore, calling this method with false before drawing may improve efficiency.
This method does nothing if the image is not shared.