图像模糊-XAML
本文关键字:-XAML 模糊 图像 | 更新日期: 2023-09-27 18:00:46
当我把一个大尺寸的图像放在上面时,图像会模糊。我在各种网站上搜索"RenderOptions.BitmapScalingMode",出现在我面前的选项只有"RenderTransform"answers"RenderTransformOrigin"。
<Image Width="249" Height="400" Stretch="Fill">
<Image.Source>
<BitmapImage UriSource="http://example.com/example.jpeg" />
</Image.Source>
</Image>
你试过这个吗?
<Image Width="249" Height="400" Stretch="Fill" RenderOptions.BitmapScalingMode="NearestNeighbor">
<Image.Source>
<BitmapImage UriSource="http://example.com/example.jpeg" />
</Image.Source>
</Image>