.NET's support for image manipulation

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I was wondering if anyone experienced with .NET's image/drawing tools would
know of a way to replace selective colors in images, like say a piant bucket
tool in Microsoft Paint?

Or even better if it did color replacement like Photoshop where it adjust
all the shades of one color together.

anything in .NET to do this?
 
Paint.NET looks pretty cool, I could probably learn how to do the paint
bucket tool from it. thanks

only thing is it doesn't seem to have replace color feature (at least not
the way Photoshop does it)
 
One solution is to use an unsafe code block to create a pointer to the first
pixel of the image. The pointer can quickly traverse every pixel of the
image, check the color of the pixel, and if it is the color you want to
change, change it to that color. For an example of how to create this
pointer and loop, see:

http://www.bobpowell.net/lockingbits.htm

--
HTH,

Kevin Spencer
Microsoft MVP
Short Order Coder
http://unclechutney.blogspot.com

What You Seek Is What You Get
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top