Friday, 29 August 2014

C programming code for FloodFill



C programming code for FloodFill

#include<graphics.h>
#include<conio.h>
 
main()
{
   int gd = DETECT, gm;
 
   initgraph(&gd, &gm, "C:\\TC\\BGI");
 
   setcolor(RED);
   circle(100,100,50);
   floodfill(100,100,RED);
 
   getch();
   closegraph();
   return 0;
}

No comments: