Shambolica Posted March 7, 2005 Posted March 7, 2005 Hi, I'm 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, isn't that kind of sad? :( Bit of an obvious oversight. I'd appreciate other's opinions. In the meantime, I'll try and find an example (probably right here) of that external floodfill in action. Thanks Quote
stustarz Posted March 7, 2005 Posted March 7, 2005 You can use the graphics object's fillpath, fillellipse, fillrectangle etc functions to fill a shape Quote Visit: VBSourceSeek - The VB.NET sourcecode library "A mere friend will agree with you, but a real friend will argue."
Shambolica Posted March 7, 2005 Author Posted March 7, 2005 You can use the graphics object's fillpath' date=' fillellipse, fillrectangle etc functions to fill a shape[/quote'] 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, "here's 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. It's not a major gripe and that is what I will do. Quote
Leaders snarfblam Posted March 7, 2005 Leaders Posted March 7, 2005 A floodfill could be useful. I wonder why they didn't include it... Quote [sIGPIC]e[/sIGPIC]
ThePentiumGuy Posted March 7, 2005 Posted March 7, 2005 MS :( -TPG Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
thenerd Posted March 8, 2005 Posted March 8, 2005 Multiple Schlerosis? So you're saying that they guy who programmed it died of MS before he could finish the floodfill? Interesting. ;) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.