Viewbox中低质量的缩小图像

时间:2016-01-14 21:11:45

标签: wpf image xaml viewbox

这是我的资源:

enter image description here

这是Viewbox显示它的方式:

enter image description here

这就是我想要的:

enter image description here

有任何方法可以实现这一目标吗?

1 个答案:

答案 0 :(得分:1)

您应该针对Image

RenderOptions.BitmapScalingMode更改为HighQuality
  

使用高质量的位图缩放,这比LowQuality模式慢,但产生更高质量的输出。 HighQuality模式与Fant模式相同。

你的XAML

<Image Source="..." RenderOptions.BitmapScalingMode="HighQuality"/>
相关问题