简体   繁体   中英

Image is Blurred - XAML

When I put an image with big dimension on this, the image is blurred. I search in various websites on a "RenderOptions.BitmapScalingMode", and the options that appear to me are just "RenderTransform" and "RenderTransformOrigin".

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

Have you try this?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM