Specifies whether to copy the original image when unsharing.
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
Description
Forcibly unshares the image.
In KiriKiri, when an entire image is copied using assignImages or similar methods, the image buffer is not actually copied; instead, the same image is shared.
Normally, this sharing is automatically released just before an attempt is made to modify the image, but it can be forcibly released using this method.
If false is specified for the copy argument, the image sharing is released, but there is no guarantee that the original image will be preserved (the image content becomes undefined), allowing for faster unsharing. If you are going to overwrite the entire image, there is no need to preserve the original image, so calling this method with false before drawing may improve efficiency.
This method does nothing if the image is not shared.