| Home
| Previous
| Next
| Up

MGL_ellipseCoord

Draws an ellipse outline.

Declaration

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

Prototype In

mgraph.h

Parameters

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

Description

Draws the outline of an ellipse given the center and radii for the ellipse. The ellipse outline is drawn in the current pen color, style and size just inside the mathematical boundary of the bounding rectangle for the ellipse.

Note that this 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 libraries). The MGL_ellipse routine is more versatile than this, as you can have an ellipse with odd diameter values, which you cannot get with this routine.

See Also

MGL_ellipse, MGL_fillEllipse, MGL_ellipseArc, MGL_fillEllipseArc

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