Lucee Function Reference
imagetranslate()
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.
Example
imagetranslate(any image,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 |
|---|---|---|---|---|
| image | any | Yes | The source image to be translated. The operation modifies this image directly. | |
| 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: |