MGL_fillEllipseCoord

Fills an ellipse.

Declaration

void MGLAPI MGL_fillEllipseCoord(
int x,
int y,
int xradius,
int yradius)

Prototype In

mgraph.h

Parameters

x | x coordinate for center of ellipse (syntax 1)
y | y coordinate for center of ellipse (syntax 1)
xradius | x radius for the ellipse (syntax 1)
yradius | y radius for the ellipse (syntax 1)

Description

Fills an ellipse given either the center and radii for the ellipse, or the bounding rectangle for the ellipse. The ellipse is filled in the current pen color and style just inside the mathematical boundary of the bounding rectangle for the ellipse.

Note that the first routine can only work with integer semi-major and semi-minor axes, but can sometimes be easier to work with (and is provided for compatibility with other graphics packages). The second routine is more versatile than the first, as you can have an ellipse with odd diameter values, which you cannot get with the first routine.

See Also

MGL_ellipse, MGL_ellipseArc, MGL_fillEllipseArc

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com