Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function IMAGEROTATE

Rotates a image at a specified point by a specified angle.

Example

imagerotate(any name,string x,[string y,[string angle,[string interpolation]]]):void

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Default Value Description
name any  Yes   The image on which this operation is performed.  
x string  Yes 2 The x coordinate for the point of rotation. The default value is 2.  
y string  No 2 The y coordinate for the point of rotation. The default value is 2.  
angle string  No 0 The rotation angle in degrees.  
interpolation string  No nearest Type of interpolation:
  • nearest (default): Applies the nearest neighbor method of interpolation. Image quality is lower than the other interpolation methods, but processing is fastest.
  • bilinear: Applies the bilinear method of interpolation. The quality of the image is less pixelated than the default, but processing is slower.
  • bicubic: Applies the bicubic method of interpolation. Generally, the quality of image is highest with this method and processing is slowest.