C# Magic Wand Tool [closed]
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
精彩评论