简体   繁体   English

如何在WP8应用程序上获得模糊的背景

[英]How to get blurred background on WP8 app

How do we get that awesome blur effect in our apps? 我们如何在我们的应用程序中获得令人敬畏的模糊效果? I don't think a blurred PNG file is the solution - or is it? 我不认为模糊的PNG文件是解决方案 - 或者是它?

Below is a sample of what I'm talking about. 以下是我所说的样本。 I found it on this page. 我在这个页面上找到了它。

Edit: I cannot seem to get SO to upload an image so I will keep trying in the meantime, but you can see the picture I'm referring to via the link above, just scroll down a bit to just above the "prototype" section where it shows pics for the Cocktail app. 编辑:我似乎无法上传图像,所以我会继续尝试,但你可以通过上面的链接看到我所指的图片,只需向下滚动到“原型”部分的上方它显示了鸡尾酒应用程序的图片。

I suspect the original app to which you linked used a blurred image (ie the image had a blur effect applied to it already). 我怀疑您链接的原始应用使用了模糊图像(即图像已经应用了模糊效果)。 That seems like the least processor-intensive way to get the effect you want. 这似乎是处理器密集程度最低的方式来获得您想要的效果。

On the other hand, if your background is customisable and you still want to apply a blur effect, you could use the Nokia Imaging SDK ( also on Nuget ) to blur any image on the fly. 另一方面,如果您的背景是可自定义的并且您仍想要应用模糊效果,则可以使用诺基亚成像SDK也在Nuget上 )动态模糊任何图像。 There is some patented technology inside that SDK that helps to keep processor / memory use to a minimum and therefore might make it usable for this kind of background effect. SDK内部有一些专利技术可以帮助将处理器/内存的使用保持在最低限度,因此可以使它可用于这种背景效果。

Example . 例子

this link might help you upto some extent but not exactly the focus blur effect which you need. 此链接可能会在某种程度上帮助您,但不完全是您需要的焦点模糊效果。

WP7 background blur effect WP7背景模糊效果

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

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