Reputation: 8506
How can I change the contrast of a picture using Silverlight?
Upvotes: 0
Views: 302
Reputation: 1993
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...
Upvotes: 0
Reputation: 9290
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.
Upvotes: 2