Saturday, April 6, 2013

sector function in c

Sector function draws and fills an elliptical pie slice.
Declaration :- void sector( int x, int y, int stangle, int endangle, int xradius, int yradius);

C programming code for sector

#include <graphics.h>
#include <conio.h>
 
main()
{
   int gd = DETECT, gm;
 
   initgraph(&gd, &gm, "C:\\TC\\BGI");
 
   sector(100, 100, 0, 135, 25, 35);
 
   getch();
   closegraph();
   return 0;
}

No comments:

Post a Comment