Lucee Function Reference
imageshear()
Transforms an image by shearing it along one axis, creating a slanted or skewed effect. Positive values slant in one direction, negative values in the opposite direction.
Example
imageshear(any image,number shear,[string direction,[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 sheared. The operation modifies this image directly. | |
| shear | number | Yes | The shear factor to apply. Positive values slant forward, negative values backward. For example, 0.5 creates a 45-degree shear. | |
| direction | string | No | horizontal |
The axis along which to apply the shear: |
| interpolation | string | No | nearest |
The interpolation method to use during transformation: |