GfxArc
- draw an arc

Low-level graphics
(AmiBroker 50)


SYNTAX GfxArc( x1, y1, x2, y2, x3, y3, x4, y4 )
RETURNS NOTHING
FUNCTION Draws an elliptical arc. The arc drawn by using the function is a segment of the ellipse defined by the specified bounding rectangle.

The actual starting point of the arc is the point at which a ray drawn from the center of the bounding rectangle through the specified starting point intersects the ellipse. The actual ending point of the arc is the point at which a ray drawn from the center of the bounding rectangle through the specified ending point intersects the ellipse. The arc is drawn in a counterclockwise direction.

Parameters

  • x1 - x-coordinate of the upper left corner of the bounding rectangle
  • y1 - y-coordinate of the upper left corner of the bounding rectangle
  • x2 - x-coordinate of the lower right corner of the bounding rectangle
  • y2 - y-coordinate of the lower right corner of the bounding rectangle
  • x3 - x-coordinate of the arc's starting point.
  • y3 - y-coordinate of the arc's starting point.
  • x4 - x-coordinate of the arc's ending point.
  • y4 - y-coordinate of the arc's ending point.

NOTE: This is LOW-LEVEL graphic function. To learn more about low-level graphic functions please read TUTORIAL: Using low-level graphics.

EXAMPLE
GfxSelectPen( colorRed );
GfxArc(100,0,200,100,150,0,200,50);
SEE ALSO GfxChord() function , GfxPie() function , GfxSelectPen() function

References:

The GfxArc function is used in the following formulas in AFL on-line library:

More information:

See updated/extended version on-line.