|
|
|
|
MGL_ellipseArc
Draws an elliptical arc outline.
Declaration
void MGLAPI MGL_ellipseArc(
rect_t extentRect,
int startAngle,
int endAngle)
Prototype In
mgraph.h
Parameters
extentRect |
Bounding rectangle defining the arc (syntax 2) |
startAngle |
Starting angle for arc (in degrees) |
endAngle |
Ending angle for arc (in degrees) |
Description
Draws the outline of an elliptical arc just inside the mathematical boundary of extentRect. StartAngle specifies where the arc begins and is treated MOD 360. EndAngle specifies where the arc ends and is also treated MOD 360. The angles are given in positive or negative degrees. Zero degrees is at 3 o'clock, 90 is at 12 o'clock high, 180 is at 9 o'clock and 270 is at 6 o'clock. Other angles are measured relative to the enclosing rectangle. Thus an angle of 45 degrees always defines a line from the center of the rectangle through it's top right corner, even if the rectangle isn't square. The ellipse outline is drawn in the current pen color, style and size.
See Also
MGL_ellipseArc, MGL_fillEllipseArc, MGL_ellipse, MGL_fillEllipse
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com