Rotates a ColdFusion image at a specified point by a specified angle.
imageRotate(name [, x] [, y] , angle [, interpolation])
→ returns void
someImage.rotate([, x] [, y] , angle [, interpolation])
2
2
nearest
nearest
bilinear
bicubic
This example shows how to rotate an image by 10 degrees.
<cfset myImage=imageRead("http://cfdocs.org/apple-touch-icon.png")><!--- Rotate the image by 10 degrees. --->
<cfset imageRotate(myImage,10)>
<cfimage source="#myImage#" action="writeToBrowser">
CF 11+ Rotate an image
imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
imgObj.rotate(90);
cfimage(action="writeToBrowser", source=imgObj);
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.