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

Richard Dally
  • 1,432
  • 2
  • 21
  • 38
  • 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 Dec 09 '15 at 10:31
  • May not be relevant - see [this social.msdn thread](https://social.msdn.microsoft.com/Forums/vstudio/en-US/513cc286-ad22-4045-b992-6334bf48c6ea/bitmap-resolution). – Wai Ha Lee Dec 09 '15 at 10:35
  • 1
    See this thread [WPF: How to display an image at its original size?](http://stackoverflow.com/questions/3055550/wpf-how-to-display-an-image-at-its-original-size) Your first image is 96 DPI, the second - 72 DPI – Ivan Stoev Dec 09 '15 at 11:02
  • Indeed it's because of that. The images has been edited with PhotoFiltre, which changes automatically the DPI. Thank you ! – Alexandre Verdeaux Dec 09 '15 at 15:47

0 Answers0