简体   繁体   English

WPF高光图像?

[英]Wpf highlight image?

Is there any effect in WPF I could Make an image shiny etc.? 我可以使图像变亮等在WPF中有什么影响吗? (I want to use it for a hovered image) (我想将其用于悬停的图像)

A mask or something like this would be great. 口罩或类似的东西会很棒。

Try applying a BitmapEffect to the image, just keep in mind that they can be expensive to use. 尝试将BitmapEffect应用于图像,只需记住它们的使用成本可能很高。

OuterGlowBitmapEffect might help you. OuterGlowBitmapEffect可能会帮助您。

It depends on what do you mean by "shiny". 这取决于您所说的“闪闪发光”。 A simple way is to have each image opacity set to 0.5 and change it to 1 when mouse is in. 一种简单的方法是将每个图像的不透明度设置为0.5,并在鼠标进入时将其更改为1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM