.net photo select 'wand' functionality -


Can I simulate wand functionality in my normal photo editor? To wit. The user clicks on a piece of photo and the app automatically selects the surrounding X pixels based on a given factor (usually tolerance threshold).

How can I do this? Any thoughts on .NET? Thank you

You have to manipulate the basic pixels to accomplish this, I start by storing the color of that pixel Which I clicked, then the induction of a 2D array which is the same dimension as the image. Change the int associated with the pixel that was clicked on 1. At that point, you only have to use a pseudo-mapping algorithm so that it can be exploded outside, by changing the mailing pixels from "1" in their array, and non-matching pixels "1".

After all, you will have a maniper-esque escad 2d array with the heart of 1s and the edges of -1, and then the uncontrolled area will still be at 0. 1S becomes the selected area


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -