Windows phone 8 使用WriteableBitmapEx在Windows运行时C#中模糊图像

Windows phone 8 使用WriteableBitmapEx在Windows运行时C#中模糊图像,windows-phone-8,windows-runtime,windows-phone-8.1,Windows Phone 8,Windows Runtime,Windows Phone 8.1,我试图在新的Windows Phone运行时C#应用程序(WPRT)中模糊图像 我使用WriteableBitmapEx NuGet和此代码使我的图像模糊,但看不到图片中的任何更改。你们怎么了 public TestXaml() { this.InitializeComponent(); .... test(); } async void test() { var ImgFile = await Window

我试图在新的Windows Phone运行时C#应用程序(WPRT)中模糊图像 我使用WriteableBitmapEx NuGet和此代码使我的图像模糊,但看不到图片中的任何更改。你们怎么了

public TestXaml()
    {
        this.InitializeComponent();
        ....
        test();
    }
async void test()
    {
        var ImgFile = await Windows.Storage.StorageFile.GetFileFromApplicationUriAsync(new Uri("ms-appx:///Assets/TestBG.jpg"));
        var wb = new WriteableBitmap(100,100);
        using (var strm = await ImgFile.OpenReadAsync())
        {
            wb = await wb.FromStream(strm);
        }
        var wb3 = WriteableBitmapExtensions.Convolute(wb, WriteableBitmapExtensions.KernelGaussianBlur5x5);

        ImageBrush ib = new ImageBrush();
        ib.ImageSource = wb3;
        PageBackground.Background = ib;
    }

此外,我还尝试了WriteableBitmapExtensions.KernelGaussianBru3x3,但仍然没有更改

看起来您需要将ImageSource设置为wb3而不是wb。对不起,首先我尝试了wb3,似乎没有更改我也尝试了wb,但没有看到任何更改。我忘了把它换回来。现在我编辑这篇文章。即使在wb3中,我也无法获得模糊的图片。我能看到的唯一变化是在更改页面背景时有一点延迟谢谢,似乎我的图像不适合在其上使用模糊,此代码可以工作,但是否可以更改此模糊效果的值?例如,我想使我的图片模糊超过此库中使用的5x5。有可能吗?有可能得到更深的模糊效果吗?这对我来说还不够