开发者

WPF - change image hue without shaders

开发者 https://www.devze.com 2023-03-28 10:59 出处:网络
I have an image in a WPF application that I would like to use as a button, and when the mouse goes over it, clicks it etc I would like the hue to change.

I have an image in a WPF application that I would like to use as a button, and when the mouse goes over it, clicks it etc I would like the hue to change.

Is it possible to do this without the hassle of using my own custom shaders?

I downloaded AForge.NET's开发者_开发百科 image processing library, but that doesn't really like the WPF Image Control..


I think you can change the opacity, may be 0.8 when you hover and 0.5 when the mouse is pressed.

0

精彩评论

暂无评论...
验证码 换一张
取 消