flood-fill

Implement flood-fill in wpf c#

Hi, I am trying to implement flood-fill on a 2d matrix. It is similar to the fill color of MS Paint or any other painting application. Following is the code void FloodFill(int x, int y, Color targetColor, Color replacementColor) { LinkedList<Point> check = new LinkedList<Point>(); if (targetColor != replacementColo...

I want Flood Fill without stack and without recursion.

I wanted to know how to apply flood fill on array , my array is two dimensional , which contains times new roman font type letter boundry. The boundry line contains 1's and inside and outside all 0's. I want to fill all 1's instead 0 in only inside. But i need a logic which do not required more memory. So avoid recursion and stack or que...