What happened to floodfill?

Shambolica

New member
Joined
Jan 23, 2004
Messages
2
Location
Oxfordshire, England
Hi,

Im working (playing) in VB.net and want to create a yin-yang symbol, using a few circles and a sine wave. Everything is OK except I can not find an easy way of filling in the black and white areas of the symbol. I did this program a while ago in previous versions of VB and just copied in an API reference that I found in a computer magazine article (PCW).

Am I right in concluding that .net does not have a built in function for flood filling? If this is the case, isnt that kind of sad? :( Bit of an obvious oversight.

Id appreciate others opinions. In the meantime, Ill try and find an example (probably right here) of that external floodfill in action. Thanks
 
You can use the graphics objects fillpath, fillellipse, fillrectangle etc functions to fill a shape
 
stustarz said:
You can use the graphics objects fillpath, fillellipse, fillrectangle etc functions to fill a shape

Excellent, thanks for the reply. I am aware of these and have used some of them. I was just hoping for a very easy and quick-to-use solution. Rather then having to define a path or a region, I just want to say, "heres the fillcolor, do it at this point please, until you hit another color / a specified color".

All I can remember is that I had to use an api "floodfill" in previous versions of VB and would have enjoyed it if they had encapulsated that into the .NET framework, rather than me still having to make an external call.

Its not a major gripe and that is what I will do.
 
A floodfill could be useful. I wonder why they didnt include it...
 
Back
Top