Copy link to clipboard
Copied
I have a png image (many of them actually) that were given to me in the right pixel size but set at 72dpi. They need to be 96dpi as they are for use in a program and WPF seems to care and tries to scale them if they are not 96 to start. I figured that's an easy fix, created a quick action to change to 96 and ran in batch on the folder. Everything ran fine, but when I open them they are all 96.012dpi. I tried doing it manually on one of them and I can set it to 96 exactly, and when I go back into it, it's still set to exact 96. However when I save, close, and reopen the file it's back to 96.012. I know it doesn't seem like it would make much difference but if it's not exactly 96 WPF will try to scale it and it ends up with some blurring on the edges, etc.
What can I do to set the images as 96 exactly and why won't it stick?
Copy link to clipboard
Copied
I know, it's miniscule, but it's triggering WPF to rescale the image and make the edges fade. To prove my point, here is the original image zoomed in:
and here is a screen capture from the program where the icon is used: