Monday, June 17, 2019

Some Graphics function in c

Some Graphics function

1. arc(int x, int y, sangle, langle, int r)

2. bar(int left, int top, int right, int bottom)

3. bar3d(int left, int top, int right, int bottom, int depth, int topflag)

4. circle(int x, int y, int r)

5. cleardevice() :- It clear the screen in graphics mode and set the current position to (0,0)

6. closegraph()

7. drawgraph(4, points)
                int point[8]={x1, y1, x2, y2, x3, y3, x4, y4};

8. ellipse(int x, int y, int sangle, int endangle, int xr, int yr)

9. setcolor(int color)
                0 for black
                1 for blue
                2 for green
                3 for shine
                4 for red
                5 for magenta
                6 for brown
                7 for light gray
                8 for dark gray
                9 for light blue
                10 for light green
                11 for light shine
                12 for light red
                13 for light megenda
                14 for yellow
                15 for white

10 int getbkcolor();

11 int getcolor();

12 setcolor(int color);

13 int getpixel();

14 int line(int x1, int y1, int x2, int y2);

15 gettext("   ");

16 outtextxy("MSG", int x, int y);

No comments:

Post a Comment