C Programs Usage
C Programs Usage
getbkcolor
draws a bar. shutdown the graphic system. ellipse draws an elliptical arc.
getbkcolor returns the current back ground color. getgraphmode returns the current graphic mode. returns the maximum color value. returns maximum x screen coordinate. returns maximum yscreen coordinate. returns the current positions y coordinate. returns the current positions xcoordinate. determaines graphic driver and mode to use by checking the hardware.
SYNTAX void far arc(int x,int y,int stangle,int endangle,int radius); void far circle(int x,int y,int radius); void far bar(int left,int top,int right,int bottom); void far closegraph(void); void far ellipse(int x,int y,int stangle,int endangle,int xradius,int yradius); void far floodfill(int x,int y,int radius); int far getbkcolor(void);
int far getmaxcolor(void); int far gatmaxx(void); int far getmaxy(void); int far gety(viod);
int far getx(void); void far detectgraph(int far *graphdriver,int far *graphmode);
15.fillellipse
void far fillellipse(int x,int y,int xradius,int yradius); void far getarccoords(struct arccoords type far *arccoords); int far getcolor(void); void far getfillpattern(char far *pattern); int far getmaxmode(void); void far drawpoly(int numpoints,int far *polypoints); void far fillpoly(int numpoints,int *polypoints); void far clearviewport(void); unsigned far getpixel(int x,int y); char *far grapherrormsg(int errorcode); void far lineto(int x,int y);
returns the current drawing color. copies a userefined fill pattern into memory. 19.getmaxmode returns maximum graphics mode number for current driver. 20.drawpoly draws the outline of a polygon. 21.fillpoly fillpoly draws and fills a polygon. clear the current view port.
22.clearviewpoint 23.getpixel
getpixel gets the color of a specified pixel. 24.grapherrormsg returns a pointer to an error message string. 25.lineto draws a line from th current position cp to (x,y).