ImageDrawArc()
Draws a circular or elliptical arc.
Requires Extension: Image Extension for Jakarta EE (Lucee 7+)
ImageDrawArc( image=any, x=number, y=number, width=number, height=number, startAngle=number, arcAngle=number, filled=boolean );
Returns: void
| Argument | Description |
|---|---|
|
image
any,
required
|
edit
The image on which this operation is performed. Alias: name |
|
x
number,
required
|
edit
The x coordinate of the upper-left corner of the arc. |
|
y
number,
required
|
edit
The y coordinate of the upper-left corner of the arc. |
|
width
number,
required
|
edit
The width of the arc. |
|
height
number,
required
|
edit
The height of the arc. |
|
startAngle
number,
required
|
edit
The beginning angle in degrees. |
|
arcAngle
number,
required
|
edit
The angular extent of the arc, relative to the start angle. |
|
filled
boolean,
optional
|
edit
Specify whether the arc is filled:
|
Examples
editimg=imageRead("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4")
imageDrawArc(img,50,50,100,100,90,180,"yes");
cfimage(action="writeToBrowser", source=img);
See also
- Image manipulation
- image.drawArc()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)