Jeff Tayler

Jeff Tayler

  • NA
  • 1
  • 2.4k

WPF graphics issue - floodfill problem

Jun 19 2013 11:35 PM
Hi

I am new to WPF and I'm mystified about how to solve what I thought was going to be a simple thing - to floodfill sections of an image.

I'm using C#/WPF in VS2012.

I have a jpg image which is the source of an image control.

The jpg has 2 colors - black and white.

The image has several sections in it  filled in white. The boundary lines are black and fully enclose the white sections. 

I am able to select the start point locations in any of these cells.

I want to be able to flood fill any section of the image with a fill color until it reaches the black boundary..

Are there any worked examples of this simple (?) task ?


thankyou

Jeff