如何在winPhone上剪辑后模糊图像边缘?

时间:2013-10-15 06:59:21

标签: c# windows-phone-7 windows-phone-8 windows-phone

我剪裁了图片:

<Image Name="Img" Source="/UntitledImage.jpg">
  <Image.Clip>
    <EllipseGeometry Center="115,115" RadiusX="50" RadiusY="50"></EllipseGeometry>
  </Image.Clip>
</Image>

或:

<Image Name="oldImg" Source="/UntitledImage.jpg">
  <Image.Clip>
    <RectangleGeometry Rect="115,115,50,50"></RectangleGeometry>
  </Image.Clip>
</Image>

我想为剪辑后的图像的每个边添加模糊。 我想管理图像的粗模糊区域。

有可能吗?

2 个答案:

答案 0 :(得分:1)

为什么不在图像顶部放置一个半透明的图像,而不是创建每个图像的模糊版本,而不是给出模糊边缘的外观?

我希望这会更快更简单。

答案 1 :(得分:0)

对于您的目的,此解决方案可能会更重一些,但我认为它可以满足您的任何需求。

您可以尝试使用Nokia Imaging SDK来处理图片。 SDK的使用非常简单且记录良好In the developer library

此外,在您决定之前,上面的链接包含探索效果的示例应用。

相关问题