I want to write a function that works like a magic wand tool in C #. I can do? Thanks
You basically need a fill filling algorithm.
Use this:
http://www.codeproject.com/KB/GDI-plus/floodfillincsharp.aspx
http://www.codeproject.com/KB/GDI-plus/queuelinearfloodfill.aspx
http://en.wikipedia.org/wiki/Flood_fill