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... Procedures
◄Summary► ◄Details► ◄Example► ◄Back►
Arguments
control One of the constants _GBorder or _GFillInterior
x1, y1 Upper-left corner of bounding rectangle in viewport
coordinates
x2, y2 Lower-right corner of bounding rectange in viewport
coordinates
wx1, wy1 Upper-left corner of bounding rectangle in window
coordinates
wx2, wy2 Lower-right corner of bounding rectange in window
coordinates
wxy1, wxy2 Window coordinates of upper-left and lower-right
corners of bounding rectangle
Description
The _Ellipse routines draw an ellipse defined by the bounding
rectangle. The border is drawn in the current color. In these
functions, the center of the ellipse is the center of the
bounding rectangle defined by the view coordinates (x1,y1)
and (x2,y2).
In _Ellipse_w and _Ellipse_wxy, the center of the ellipse
is the center of the bounding rectangle defined by window
coordinates (wx1,wy1) and (wx2,wy2), or (wxy1,wxy2),
respectively.
If the bounding-rectangle arguments define a point or a
vertical or horizontal line, no figure is drawn. The control
argument can be either the _GFillInterior or _GBorder constants.
_GFillInterior fills the ellipse using the current fill mask.
_GBorder draws the ellipse outline only.
The control option _GFillInterior is equivalent to calling
the _FloodFill procedure after the ellipse has been drawn. The
center of the ellipse is the starting point for the fill operation,
and the current color (set by _SetColor) is the boundary color.
_GrStatus Returns
_GrClipped, _GrInsufficientMemory, _GrInvalidParameter, _GrNoOutput,
_GrNotInProperMode