Layer.copyToBitmapFromMainImage

Function/Meaning
Copying image to Bitmap
Type
Method of Layer class
Syntax
copyToBitmapFromMainImage(dest)
Arguments
dest Specifies the destination Bitmap object.
Return Value
None (void)
Description
Copies the layer's main image to the Bitmap object specified by dest.
The image size will be the same as the source layer's image size.
Although it is called a copy, it actually just results in a state where "the same image is shared by two or more layers," so this method takes almost no execution time.
Reference
Layer.copyFromBitmapToMainImage