K
K
KirillMB2015-04-29 16:54:55
WPF
KirillMB, 2015-04-29 16:54:55

Image attaching multiple Effect, how to do?

Good afternoon.
There is a picture, I need to control its contrast, brightness, and translate it into a negative.
Contrast, brightness and negative control is done through shaders.
Another question is how to apply all this in one picture, so that you always have the opportunity to play with contrast and brightness, and when you need to turn on the negative.
Now, to put it bluntly.

<Image  Source="{Binding Path=Model}" RenderOptions.BitmapScalingMode="HighQuality" 
                <Image.Effect>
                    <effects:ContrastAdjust Contrast="{Binding ElementName=cVal, Path=Value}" />
                </Image.Effect>
</Image>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question