Saturday, April 6, 2013

fillellipse function in c

Declaration of fillellipse function :-
void fillellipse(int x, int y, int xradius, int yradius);
x and y are coordinates of center of the ellipse, xradius and yradius are x and y radius of ellipse respectively.

C program for fillellipse

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


No comments:

Post a Comment