Layer.setSizeToImageSize

Function/Meaning
Sets the layer display size to match the image size
Type
Layer class method
Syntax
setSizeToImageSize()
Arguments
None
Return Value
None (void)
Description
Sets the display size of the layer to be the same as the image size.
Many operations that change the image size do not change the display size, but this method can be used to synchronize the display size with the image size.