ColdFusion 9.0 Resources |
ImageDrawQuadraticCurveSee alsoImageDrawArc, ImageDrawOval, ImageDrawRoundRect,ImageSetAntialiasing, ImageSetDrawingColor, ImageSetDrawingStroke Parameters
UsageA quadratic curve is a curve controlled by a single control point. The curve is drawn from the last point in the shape to the target x and y coordinates. Coordinates can be integers or real numbers. Use the ImageSetDrawingColor and ImageSetDrawingStroke functions to specify the color and lines of the quadratic curve. Use the ImageSetAntialiasing function to improve the quality of the rendered image. Example<!--- This example shows how to draw a curved line. ---> <!--- Use the ImageNew function to create a 400x400-pixel image. ---> <cfset myImage=ImageNew("",400,400)> <!--- Turn on antialiasing to improve image quality. ---> <cfset ImageSetAntialiasing(myImage,"on")> <!--- Set the drawing color to green. ---> <cfset ImageSetDrawingColor(myImage,"green")> <!--- Draw a curved line on the image. ---> <cfset ImageDrawQuadraticCurve(myImage,120,320,5,15,380,280)> <!--- Display the image in a browser. ---> <cfimage source="#myImage#" action="writeToBrowser"> |