An efficient way to exchange any two colors in an image using the .NET Compact Framework

Is there an efficient way to take and render an image and be able to replace a given color with another color using the .NET Compact Framework?

For example, to replace white with black or vice versa?

0


a source to share


1 answer


Using the Image Processing API, you can get the IBitmapImage, lock the bits of the image data, iterate over the bits through BitmapData *, and change the pixels of your choice.



Edit: I just noticed the NETCF tag, but I'm leaving this answer for reference.

0


a source







All Articles