Lucee object methods reference
Object Method Image.translate
Copies an image to a new location on the plane.
Image.translate(number xTrans,number yTrans,[string interpolation]):image
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 | Displacement in the x direction. | |
yTrans | number | Yes | Displacement in the y direction. | |
interpolation | string | No | nearest |
Type of interpolation: |