如何使用 win2D 模糊图像?

How to blur an image with win2D?

我想模糊这张图片:

<Image x:Name="pic"  Stretch="Fill" Margin="3,-43,0,-46"/>

调用此方法时:

private void Button_Click(object sender, RoutedEventArgs e)
{
    pic.Source=CertainImage;
    //blur this image
}

我应该使用高斯模糊效果吗?如何使用?

Windows 社区工具包中有 BackdropBlurBrush

<Grid>
  <Image  Height="400"  Source="ms-appx:///Assets/Photos/BigFourSummerHeat.jpg"/>
  <Border x:Name="bor" Visibility="Collapsed" BorderBrush="Black" BorderThickness="1" > 
    <Border.Background>
      <media:BackdropBlurBrush Amount="3.43" />
     </Border.Background>
  </Border>
</Grid>
private void Button_Click(object sender, RoutedEventArgs e)
{
    bor.Visibility = Visibility.Visible; //or change the amount of blur effect
}