Determines the endpoints in viewport coordinates of the most recently drawn arc or pie.
#include <graph.h>
short __far _getarcinfo( struct _xycoord __far *start,
struct _xycoord __far *end, struct _xycoord __far *fillpoint );
start | Starting point of arc | |
end | Ending point of arc | |
fillpoint | Point at which pie fill will begin |
The _getarcinfo function determines the endpoints in viewport coordinates of the most recently drawn arc or pie.
If successful, the _getarcinfo function updates the start and end _xycoord structures to contain the endpoints (in viewport coordinates) of the arc drawn by the most recent call to one of the _arc or _pie functions.
In addition, fillpoint specifies a point from which a pie can be filled. This is useful for filling a pie in a color different from the border color. After a call to _getarcinfo, change colors using the _setcolor function. Use the color, along with the coordinates in fillpoint, as arguments for the _floodfill function.
The _getarcinfo function returns a nonzero value if successful. If neither the _arc nor the _pie function has been successfully called since the last time the screen was cleared or a new graphics mode or viewport was selected, the _getarcinfo function returns 0.
Standards:None
16-Bit:DOS
32-Bit:None
_arc functions, _floodfill, _getvideoconfig, _grstatus, _pie functions
See the example for _arc.