image.drawArc()

Draws a circular or elliptical arc.

image.drawArc( x=number, y=number, width=number, height=number, startAngle=number, arcAngle=number, filled=boolean )

Returns: Image

Argument Description
x
number, required

The x coordinate of the upper-left corner of the arc.

y
number, required

The y coordinate of the upper-left corner of the arc.

width
number, required

The width of the arc.

height
number, required

The height of the arc.

startAngle
number, required

The beginning angle in degrees.

arcAngle
number, required

The angular extent of the arc, relative to the start angle.

filled
boolean, optional

Specify whether the arc is filled:

  • true: The arc is filled with the specified drawing color.
  • false (default): Only the outline of the arc is drawn.

Examples

img=imageRead("https://avatars1.githubusercontent.com/u/10973141?s=280&v=4")
	img.DrawArc(70,50,70,100,90,180,"yes");
	cfimage(action="writeToBrowser", source=img);

See also