I want to write a function that work like magic wand tool dynamic in C# . Can I do ? Thanks
You basically need flood fill 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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With