1

I have two versions of the same image, which I want to display in a WPF application. For me, they have the same properties, but in the application with a control "Image", with a stretch to none, they are displayed differently.

I would understand why.

Screenshot of the problem

The two image files

4
  • I can't download your zip file where I am. What are the DPI settings for the images - are they the same? Also, share your xaml.
    – Wai Ha Lee
    Commented Dec 9, 2015 at 10:31
  • May not be relevant - see this social.msdn thread.
    – Wai Ha Lee
    Commented Dec 9, 2015 at 10:35
  • 1
    See this thread WPF: How to display an image at its original size? Your first image is 96 DPI, the second - 72 DPI
    – Ivan Stoev
    Commented Dec 9, 2015 at 11:02
  • Indeed it's because of that. The images has been edited with PhotoFiltre, which changes automatically the DPI. Thank you ! Commented Dec 9, 2015 at 15:47

0

Browse other questions tagged or ask your own question.