Whatever message this page gives is out now! Go check it out!
ImageDrawLine(name, x1, y1, x2, y2)Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
x1 | Required. The x coordinate for the start point of the line. |
y1 | Required. The y coordinate for the start point of a line. |
x2 | Required. The x coordinate for the end point of the line. |
y2 | Required. The y coordinate for the end point of the line. |
<!--- This example shows how to draw a square bisected by
a diagonal line. --->
<!--- Use the ImageNew function to create a 100x100-pixel image. --->
<cfset myImage=ImageNew("",100,100)>
<!--- Turn on antialiasing to improve image quality. --->
<cfset ImageSetAntialiasing(myImage,"on")>
<!--- Draw a diagonal line that bisects the square. --->
<cfset ImageDrawLine(myImage,0,0,100,100)>
<!--- Display the image in a browser. --->
<cfimage source="#myImage#" action="writeToBrowser">