Lucee object methods reference
Object Method Image.translate
Moves an image to a new position by specified x and y offsets. The original image content is cleared and redrawn at the new location.
Image.translate(number xTrans,number yTrans,[string interpolation]):void
Category
image
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
| Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| xTrans | number | Yes | The horizontal displacement in pixels. Positive values move right, negative values move left. | |
| yTrans | number | Yes | The vertical displacement in pixels. Positive values move down, negative values move up. | |
| interpolation | string | No | nearest |
The interpolation method to use during translation: |