Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted
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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...