0% found this document useful (0 votes)
24 views

C Programs Usage

The document describes various graphics functions in C including arc, circle, bar, closegraph, ellipse, floodfill, getbkcolor, getgraphmode, getmaxcolor, getmaxx, getmaxy, getx, detectgraph, fillellipse, getarccoords, getcolor, getfillpattern, getmaxmode, drawpoly, fillpoly, clearviewport, getpixel, grapherrormsg, and lineto. It provides the name and basic functionality of each function.

Uploaded by

preetkaur19
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views

C Programs Usage

The document describes various graphics functions in C including arc, circle, bar, closegraph, ellipse, floodfill, getbkcolor, getgraphmode, getmaxcolor, getmaxx, getmaxy, getx, detectgraph, fillellipse, getarccoords, getcolor, getfillpattern, getmaxmode, drawpoly, fillpoly, clearviewport, getpixel, grapherrormsg, and lineto. It provides the name and basic functionality of each function.

Uploaded by

preetkaur19
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

NAME 1.arc 2.circle 3.bar 4.closegraph 5.ellipse 6.floodfill 7.

getbkcolor

FUNCTION arc draws a circular arc. circle draws a circle.

draws a bar. shutdown the graphic system. ellipse draws an elliptical arc.

floodfills a bound region.

8.getgraphmode 9.getmaxcolor 10.getmaxx 11.getmaxy 12.gety 13.getx 14.detectgraph

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 getgraphmode(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

fillellipse draws and fill an ellipse.

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);

16.getarccoords 17.getcolor 18.getfillpattern

gets coordinate of the last call to arc.

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).

You might also like