image.rotate()
Rotates a image at a specified point by a specified angle.
image.rotate( x=string, y=string, angle=string, interpolation=string )
Returns: Image
| Argument | Description |
|---|---|
|
x
string,
required
|
edit
The x coordinate for the point of rotation. The default value is 2. |
|
y
string,
optional
|
edit
The y coordinate for the point of rotation. The default value is 2. |
|
angle
string,
optional
|
edit
The rotation angle in degrees. |
|
interpolation
string,
optional
|
edit
Type of interpolation:
|
Examples
edit imgObj = imageNew("",200,200,"rgb","red");
imgObj.rotate(50,50,60,"bilinear");
cfimage(action = "writeToBrowser",source = imgObj);
writeoutput("<br><br>");
img1 = imageNew("",100,100,"RGB","blue");
img1.rotate(60,40,120);
cfimage(action = "writeToBrowser",source = img1);