|
initgraph initializes the graphics system by loading a graphics driver from disk (or validating a registered driver), and putting the system into graphics mode. You pass it three variables, one for the driver, another for the mode, and the third which is the path where the BGI files are stored.
You declare initgraph from the graphics header file:
#include <graphics.h>
void initgraph(int *graphdriver, int *graphmode, char *pathtodriver);
SetFillStyle sets the filling pattern and color to one of the predefined filling patterns.
setfillstyle(style, getmaxcolor());
fillellipse Draws an ellipse using (x,y) as a center point and xradius and yradius as the horizontal and vertical axes, and fills it with the current fill color and fill pattern.
void fillellipse(int x, int y, int xradius, int yradius);
|