Fade grayscale image in silverlight

I use the blend expression and cannot figure out how to lose weight on a grayscale color image. Can I do this in xaml or do I need to handle this in my C #?

+3
source share
1 answer

A couple of ways to do this.

1) preliminary calculation of the gray image; place it on top of the color image; animated opacity of the image with a gray scale from 0 to 1 to get the desired effect.

2) use a pixel shader. The wpf shader library may have one

+2
source

Source: https://habr.com/ru/post/1763370/


All Articles