Layer.setImagePos

Function/Meaning

Layer image offset setting

Type
Layerclassmethod of
Syntax
setImagePos(left, top)
Arguments
left

Specifies the left edge position (x offset) of the image to display on the layer, in pixels.
This value can also be obtained and set with the Layer.imageLeft property.

top

Specifies the top edge position (y offset) of the image to display on the layer, in pixels.
This value can also be obtained and set with the Layer.imageTop property.

Return value
None (void)
Explanation

Specifies the layer image offset.
The layer image size can be larger than the layer display size, but not all can be displayed, so you will have to specify the display offset with this method and the Layer.imageLeft and Layer.imageTop properties.
The offset can be 0 or a negative number.