Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
ellipse Functions
◄Summary► ◄Example► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The ellipse functions draw ellipses or circles. The borders are
drawn in the current color.
In the ellipse function, the center of the ellipse is the center of
the bounding rectangle defined by the view-coordinate points (<x1>,
<y1>) and (<x2>, <y2>).
In the ellipse_w function, the center of the ellipse is the center
of the bounding rectangle defined by the window-coordinate points
(<wx1>, <wy1>) and (<wx2>, <wy2>).
If the bounding-rectangle arguments define a point or a vertical or
horizontal line, no figure is drawn.
The <control> argument can be one of the following symbolic
constants: $GBORDER or $GFILLINTERIOR.
The <control> option given by $GFILLINTERIOR is equivalent to a
subsequent call to the floodfill function using the center of the
ellipse as the starting point and the current color (set by
setcolor) as the boundary color.
Constant Meaning
$GBORDER Does not fill the ellipse.
$GFILLINTERIOR Fills the ellipse using the current color and
fill mask.
Return Value
The ellipse functions return a nonzero value if the ellipse is
drawn successfully; otherwise, they return 0.
-♦-