【问题标题】:Image is Blurred - XAML图像模糊 - XAML
【发布时间】:2015-09-19 03:11:20
【问题描述】:

当我在上面放置一个大尺寸的图像时,图像会变得模糊。我在各种网站上搜索“RenderOptions.BitmapScalingMode”,出现的选项只有“RenderTransform”和“RenderTransformOrigin”。

<Image Width="249" Height="400" Stretch="Fill">
<Image.Source>
    <BitmapImage UriSource="http://example.com/example.jpeg" />
</Image.Source>
</Image>

【问题讨论】:

  • 图片的原始尺寸是多少?看起来你在做一个更大的,像素没有从魔术中出现,当你放大时系统必须插入新的,所以事情会变得模糊。
  • 嗨,好吧,图像的大小不是最好的......但适合这个。谢谢

标签: c# .net image xaml render


【解决方案1】:

你试过了吗?

<Image Width="249" Height="400" Stretch="Fill" RenderOptions.BitmapScalingMode="NearestNeighbor">
    <Image.Source>
        <BitmapImage UriSource="http://example.com/example.jpeg" />
    </Image.Source>
</Image>

【讨论】:

    猜你喜欢
    • 2016-11-11
    • 2015-06-10
    • 2014-06-13
    • 2019-02-02
    • 2019-05-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多