What is the diffrence between the two graphics function in C++ namely floodfill and setfillstyle. If someone could provide a example it would be more useful.
Printable View
What is the diffrence between the two graphics function in C++ namely floodfill and setfillstyle. If someone could provide a example it would be more useful.
The floodfill() library function fills in the color in the interior of the object specified. The function starts the fill at a particular X,Y location inside the object which is specified in the first two arguments.
The setfillstyle() function takes two arguments. The first argument is a pattern and the second argument is the color.
Thank you very much for your detailed explanation christia. I could get a good idea about the two functions from your explanation. In fact I even tried a sample and could get my result as desired.