Search code examples
xamlwindows-8microsoft-metrolive-tile

How to resize image returned from URL for live tile


I need to re-size and image that I'm using to update a live tile in a Windows 8 modern app. I'm retrieving the image through a URL and the image is too large for the tile's size limit of 310 x 150. I have to do this for over 80 images so downloading the image itself isn't an option. Any ideas?


Solution

  • I do something similar on windows phone, take a look on how to do this here: Resize image for Live Tile - WriteableBitmapEx Long blog post version: http://depblog.weblogs.us/2012/01/09/resize-images-to-be-used-on-live-tile-windows-phone-7/

    I also used the same scenario in windows 8, the example for that can be found here: http://depblog.weblogs.us/2012/06/22/comdaybe-image-manipulation-in-windows-8-metro-app/

    BUT this will indeed download the original image first, don't know if it is a big problem?