0

How can I change the contrast of a picture using Silverlight?

alansiqueira27
  • 8,129
  • 15
  • 67
  • 111
  • 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 Answers2

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