Monday, July 14, 2014

Five Graphics statement's syntax of C are given bellow - 

a.       line() function: This function uses to draw Lines in C programming.
Syntax –
Void far line(int startx, int starty, int endx, int endy);
b.      circle() function: This function uses to draw Circles in C programming.
Syntax –
Void far circle(int x, int y, int radius);
c.       drawpoly() function: This function uses to draw Polygon in C programming.
Syntax –
Void far drawpoly(int numpoints, int far*points);
d.      lineto() function: This function uses to draw Line from present place to (x,y).
Syntax –
Void far lineto(int x, int y);
e.      setlinestype() function: This function uses to draw lines of various styles.
Syntax –

Void far setlinetype(int style, unsigned pattern, int width);

0 comments:

Post a Comment