Whatever message this page gives is out now! Go check it out!
ImageRotate(name, angle [,interpolation])
ImageRotate(name, x , y , angle [,interpolation])Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
angle | Required. The rotation angle in degrees. |
x | Required. The x coordinate for the point of rotation. |
y | Required. The y coordinate for the point of rotation. |
interpolation | Optional. Type of interpolation:
|
<!--- Create a ColdFusion image from an existing JPEG file. --->
<cfset myImage=ImageNew("../cfdocs/images/artgallery/jeff05.jpg")>
<cfset ImageSetAntialiasing(myImage,"on")>
<!--- Rotate the image by 10 degrees. --->
<cfset ImageRotate(myImage,10)>
<cfimage source="#myImage#" action="writeToBrowser"><cfimage source="../cfdocs/images/artgallery/jeff05.jpg" name="myImage">
<cfset ImageRotate(myImage,10,90,10,"bicubic")>
<cfimage source="#myImage#" destination="testMyImage.jpeg" action="write" overwrite="yes">
<img src="../cfdocs/images/artgallery/jeff05.jpg">
<img src="testMyImage.jpeg">