Bitmap.independ

機能/意味
Unsharing an image
タイプ
Bitmapクラスのメソッド
構文
independ(copy=true)
引数
copy  Specify whether to copy the original image when unsharing.
 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 unsharing the image.
 Kirikiri will share the same image without actually copying the image buffer when copying the entire image with 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 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.