How can I change the contrast of a picture using Silverlight?
Asked
Active
Viewed 298 times
0
-
Look at this question: [Adjust the contrast of an image in C# efficiently](http://stackoverflow.com/questions/3115076/adjust-the-contrast-of-an-image-in-c-efficiently) – kyrylomyr Mar 03 '11 at 13:06
2 Answers
2
the .NET Image Tools library is a good starting point. The ImageTools.Filtering namespace includes some filters that may do what you are looking for.

Francesco De Vittori
- 9,100
- 6
- 33
- 43
0
Just a guess, but how about using layering and transparency; for example:
Rectangle { Background = black} Image Rectange { Background = white }
By changing the relative opacity of the image and foreground (white) rectangle, I would imagine you'd get a reasonable simulation of changing contrast.
Be interested to know if this works...

ibebbs
- 1,963
- 2
- 13
- 20
-
I'm not sure about that. In my case, I need to be sure, so no. But not a bad ideia. – alansiqueira27 Mar 09 '11 at 16:33