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?