Layer.setImagePos

Function/Meaning
Setting the layer image offset
Type
Method of the Layer class
Syntax
setImagePos(left, top)
Arguments
left Specifies the left edge position (x offset) of the image to be displayed in the layer, in pixels.
This value can also be retrieved or set using the Layer.imageLeft property.
top Specifies the top edge position (y offset) of the image to be displayed in the layer, in pixels.
This value can also be retrieved or set using the Layer.imageTop property.
Return Value
None (void)
Description
Specifies the layer image offset.
The layer image size can be larger than the layer display size, but since it is not possible to display everything at once, you specify the display offset using this method or the Layer.imageLeft and Layer.imageTop properties.
The offset will be 0 or a negative value.