Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# Magic Wand Tool [closed]

I want to write a function that work like magic wand tool dynamic in C# . Can I do ? Thanks

like image 477
user468949 Avatar asked Oct 07 '10 10:10

user468949


1 Answers

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

like image 106
Daniel Mošmondor Avatar answered Oct 13 '22 06:10

Daniel Mošmondor