//Use of floodfill
#include<stdio.h>
#include<graphics.h>
#include<conio.h>
void main()
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"C:\\TurboC3\\BGI");
setfillstyle(HATCH_FILL,RED);
{
bar(100,100,120,400);
}
setcolor(YELLOW);
circle(220,200,50);
setfillstyle(XHATCH_FILL,YELLOW);
floodfill(220,200,YELLOW);
getch();
closegraph();
}
No comments:
Post a Comment
Note: only a member of this blog may post a comment.