ImageRotate()
Rotates an image at a specified point by a specified angle.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageRotate( image=any, x=string, y=string, angle=string, interpolation=string );
Returns: void
| Argument | Description | Default |
|---|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
|
x
string,
required
|
edit
The x coordinate for the point of rotation. The default value is 2. |
2 |
|
y
string,
optional
|
edit
The y coordinate for the point of rotation. The default value is 2. |
2 |
|
angle
string,
optional
|
edit
The rotation angle in degrees. |
0 |
|
interpolation
string,
optional
|
edit
Type of interpolation:
|
nearest |
Examples
editimg=imageNew("",100,100,"RGB","0fb9b1");
imageRotate(img, "60");
cfimage(action="writeToBrowser",source=img);
See also
- Image manipulation
- image.rotate()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)