没有 BitmapEffects 的 OuterGlowBitmapEffect 替代方案

发布于 2024-09-02 08:11:23 字数 98 浏览 3 评论 0原文

OuterGlowBitmapEffect 的良好替代品是什么?

最好是可以在主题/样式中使用的一种,以及可以在没有 BitmapEffects 的情况下使用的一种。

What is a good alternative to OuterGlowBitmapEffect?

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

最美不过初阳 2024-09-09 08:11:23

标准 Effect 库提供了 DropShadowEffect,可以将其设置为看起来像 OuterGlowBitmapEffect。此效果的优点在于它是硬件加速的(与在软件中完成的位图效果不同)。要使 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.

聊慰 2024-09-09 08:11:23

不知道好不好,我从来没有测试过它,我只是读过它,看看此处

Donno if is good or not, I never tested it, I just read about it, check it out here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文