locked
Display part of an image file in an Image object.

    Question

  • I would like to display a part of a larger image (a png file) in an Image object and i want to do that in the c# code not in the xaml. Is there any way to do that? It would be a very tedious work to split the image file into fifty smaller images, especially since my graphic dude will keep making changes to the file.  

    Saturday, May 24, 2014 5:16 PM

Answers

  • You can crop the photo when importing it with a BitmapDecoder.

    Search the sample gallery for "crop bitmap" and you will find a sample.

    • Marked as answer by Zadrith Sunday, May 25, 2014 5:30 PM
    Sunday, May 25, 2014 4:20 PM
    Owner

All replies

  • You can crop the photo when importing it with a BitmapDecoder.

    Search the sample gallery for "crop bitmap" and you will find a sample.

    • Marked as answer by Zadrith Sunday, May 25, 2014 5:30 PM
    Sunday, May 25, 2014 4:20 PM
    Owner
  • Thank you, I think it is just what i need :-)
    Sunday, May 25, 2014 5:30 PM