|
-
Mar 18th, 2003, 09:43 PM
#1
Thread Starter
Member
using a flood fill inside a PictureBox
Let's presume that I have a PictureBox on my form called "PictureBox1". I have done some line drawing on it (see attached image--LEFT SIDE).
I want to, given an (x,y) pixel pair, flood file the "white" region to "green" (see attached image--RIGHT SIDE).
My question is this:
How can you, within a PictureBox, execute a "flood fill" on a region given the "before" color, the "after" color, and an (x,y) coordinate pair?
Is this something that can be easily done?
What I'm ultimately getting at is odd shapes that I will want to fille with different colors.
Does anyone have any ideas?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|