Whatever message this page gives is out now! Go check it out!
ImageSetDrawingColor(name, color)Parameter | Description |
name | Required. The ColdFusion image on which this operation is performed. |
color | Required. Drawing color:
|
<!--- Use the ImageNew function to create a ColdFusion image. --->
<cfset myImage=ImageNew("",200,300)>
<!--- Turn on antialiasing to improve image quality. --->
<cfset ImageSetAntialiasing(myImage)>
<!--- Set the drawing color to pink. --->
<cfset ImageSetDrawingColor(myImage,"pink")>
<!--- Draw a pink line. --->
<cfset ImageDrawLine(myImage,1,1,200,300)>
<!--- Draw a pink oval. --->
<cfset ImageDrawOval(myImage,40,50,80,40)>
<!--- Draw another pink oval. --->
<cfset ImageDrawOval(myImage,15,180,80,40)>
<!--- Draw a pink rectangle. --->
<cfset ImageDrawRect(myImage,100,100,45,65)>
<!--- Display the image in a browser. --->
<cfimage source="#myImage#" action="writeToBrowser">