简体   繁体   English

带有Silverlight的Windows Phone中的模糊效果

[英]Blur effect in Windows Phone with Silverlight

I created a project Windows Phone with Silverlight. 我用Silverlight创建了一个Windows Phone项目。

How can I add blur effect in this image? 如何在此图像中添加模糊效果?

<Image Source="Images\myImage.png" Stretch="Fill">
        <Image.Effect>
            <BlurEffect Radius="20"/>
        </Image.Effect>
</Image>

Blur isn't implemented in WP8.1. WP8.1中未实现模糊。

Best route is to 'borrow' the code from the blog at http://www.blendrocks.com/code-blend/2015/1/29/implementing-image-blur-in-a-windows-universal-app . 最好的方法是从http://www.blendrocks.com/code-blend/2015/1/29/implementing-image-blur-in-a-windows-universal-app中的博客“借用”代码。

I'm not going to plagiarize his code here, but head over to his blog and check it out. 我不会在这里to窃他的代码,而是转到他的博客并进行检查。 Last updated Jan 2015 so at this point its fairly recent. 上次更新时间为2015年1月,因此目前为止还不是很久。

Hope this helps. 希望这可以帮助。 Healy in Tampa 坦帕的希利

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

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