Live Tile Image rendering Technique RRS feed

  • Question

  • Hello,

    I'm trying to render an image from an image Url  (say of 320X200) dimension image to 100X100 box. and  hence used the below code.

    //is the converter snippet that converts image url
    BitmapImage bImg = new BitmapImage(new Uri(ImageUrl, UriKind.RelativeOrAbsolute));
                        bImg.DecodePixelHeight = 100;
                        bImg.DecodePixelWidth = 100;
                        return bImg;
    This Bit map image is bound as source to image tag 
    <Image Source="{Binding ImageUrl, Converter={StaticResource NewsImgConverter}}"  Stretch="Uniform" Width="100" Height="100" VerticalAlignment="Top" HorizontalAlignment="Center" Margin="0,0,0,0"/>

    and the same image Url is directly given to display on Live Tile.

    I see that the clarity or visibility of image rendered on Live tile is better than what is rendered in the App.

    What should I do to get the clarity as that of Live Tile(Square rendering)

    Any other additional steps to be do

    Thanks & Regards Tejaswi Chandrapatla

    Tuesday, August 26, 2014 2:55 PM


  • If you read the file in and decide it yourself with aBitmapDecoder you can choose which interpolation mode to use for resizing. The default chooses speed over quality, but you can choose quality over showed if your app needs it.
    Tuesday, August 26, 2014 3:02 PM