Whatever message this page gives is out now! Go check it out!
ImageTranslateDrawingAxis(name, x, y)Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
x | x coordinate |
y | y coordinate |
<cfset myImage=ImageNew("",200,200)>
<!--- Turn on antialiasing to improve image quality. --->
<cfset ImageSetAntialiasing(myImage)>
<!--- Translate the origin to (100,20). --->
<cfset ImageTranslateDrawingAxis(myImage,100,20)>
<!--- Draw a rectangle at the offset location. --->
<cfset ImageDrawRect(myImage,50,60,40,50)>
<!--- Display the image in a browser. --->
<cfimage source="#myImage#" action="writeToBrowser">