Draws a single line defined by two sets of x and y coordinates on a ColdFusion image.
					
					imageDrawLine(name, x1, y1, x2, y2)
					
						→ returns void
					
				
							someImage.drawLine(x1, y1, x2, y2)
							
						
bx-image module.
									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"> Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.