没有BitmapEffects的OuterGlowBitmapEffect替代 [英] OuterGlowBitmapEffect Alternative Without BitmapEffects

查看:86
本文介绍了没有BitmapEffects的OuterGlowBitmapEffect替代的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是OuterGlowBitmapEffect的好选择?

What is a good alternative to OuterGlowBitmapEffect?

最好是可以用于主题/样式的对象,而可以不使用BitmapEffects的对象。

Preferably one that can be used in a theme/style and one that can be used without BitmapEffects.

推荐答案

标准的效果库提供了 DropShadowEffect OuterGlowBitmapEffect 的c $ c>。关于这种效果的好处是它是硬件加速的(与位图效果不同,后者是在软件中完成的)。要使 DropShadowEffect 看起来像光晕,只需将 ShadowDepth 属性设置为0。

The standard Effect library provides a DropShadowEffect that can be set up to look just like an OuterGlowBitmapEffect. The nice thing about this effect is that it is hardware-accelerated (unlike the bitmap effects, which are done in software). To make the DropShadowEffect look like a glow, simply set the ShadowDepth property to 0.

这篇关于没有BitmapEffects的OuterGlowBitmapEffect替代的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆