ImageDrawQuadraticCurve()
Draws a curved line. The curve is controlled by a single point.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageDrawQuadraticCurve( image=any, x1=number, y1=number, ctrlx=number, ctrly=number, x2=number, y2=number );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
x1
number,
required
|
edit
The x coordinate of the start point of the quadratic curve segment. |
|
y1
number,
required
|
edit
The y coordinate of the start point of the quadratic curve segment. |
|
ctrlx
number,
required
|
edit
The x coordinate of the first control point of the quadratic curve segment. |
|
ctrly
number,
required
|
edit
The y coordinate of the first control point of the quadratic curve segment. |
|
x2
number,
required
|
edit
The x coordinate of the end point of the quadratic curve segment. |
|
y2
number,
required
|
edit
The y coordinate of the end point of the quadratic curve segment. |
Examples
editimg=imageNew("",100,100,"RGB","a29bfe");
ImageDrawQuadraticCurve(img,0,80,50,0,75,20);
cfimage(action="writeToBrowser",source=img);
See also
- Image manipulation
- image.drawQuadraticCurve()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)