GfxChord
- draw a chord

Low-level graphics
(AmiBroker 50)


SYNTAX GfxChord( x1, y1, x2, y2, x3, y3, x4, y4 )
RETURNS NOTHING
FUNCTION Draws a chord (a closed figure bounded by the intersection of an ellipse and a line segment). The (x1, y1) and (x2, y2) parameters specify the upper-left and lower-right corners, respectively, of a rectangle bounding the ellipse that is part of the chord. The (x3, y3) and (x4, y4) parameters specify the endpoints of a line that intersects the ellipse. The chord is drawn by using the selected pen and filled by using the selected brush.

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 chord's starting point.
  • y3 - y-coordinate of the chord's starting point.
  • x4 - x-coordinate of the chord's ending point.
  • y4 - y-coordinate of the chord'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 );
GfxSelectSolidBrush( colorBlue );
GfxChord(100,0,200,100,150,0,200,50);
SEE ALSO GfxSelectPen() function , GfxSelectSolidBrush() function , GfxPie() function

References:

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

More information:

See updated/extended version on-line.