ImageRotateDrawingAxis()
Rotates all subsequent drawing on an image at a specified point by a specified angle.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageRotateDrawingAxis( image=any, angle=number, x=number, y=number );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
angle
number,
optional
|
edit
The rotation angle in degrees. |
|
x
number,
optional
|
edit
The x coordinate for the point of rotation. The default value is 0. |
|
y
number,
optional
|
edit
The y coordinate for the point of rotation. The default value is 0. |
Examples
edit imgObj = imageNew("",152,152,"rgb","red");
imgObj.rotateDrawingAxis(135,71,71);
imgObj.drawLines([0,38,76,114,152],[0,152,0,152,0],"no","no");
cfimage(action="writeToBrowser", source=imgObj);
See also
- Image manipulation
- image.rotateDrawingAxis()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)