Whatever message this page gives is out now! Go check it out!
ImageRotateDrawingAxis(image, angle [, x, y])Parameter | Description |
image | Required. The ColdFusion image on which this operation is performed. |
angle | Required. The rotation angle in degrees. |
x | Optional. The x coordinate for the point of rotation. The default value is 0. |
y | Optional. The y coordinate for the point of rotation. The default value is 0. |
<!--- Use ImageNew to create a 300x300-pixel image. --->
<cfset myImage=ImageNew("",300,300)>
<!--- Turn on antialiasing to improve image quality. --->
<cfset ImageSetAntialiasing(myImage,"on")>
<!--- Set the drawing axis to 30 degrees and the point of rotation at (10,10). --->
<cfset ImageRotateDrawingAxis(myImage,30,10,10)>
<!--- Set the drawing color to blue. --->
<cfset ImageSetDrawingColor(myImage,"blue")>
<!--- Draw three shapes with the same color and drawing axis. --->
<cfset ImageDrawRect(myImage,150,10,10,150,"yes")>
<cfset ImageDrawOval(myImage,200,40,45,65,"yes")>
<cfset ImageDrawRect(myImage,275,10,10,150,"yes")>
<cfimage source="#myImage#" action="writeToBrowser">