How to change resolution (DPI) of an image?

前端 未结 5 689
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 07:01

I have a JPEG picture with a DPI of 72. I want to change 72 dpi to 300 dpi.

How could I change resolution of JPEG pictures using C#?

5条回答
  •  爱一瞬间的悲伤
    2020-12-05 07:49

    This article talks about modifying the EXIF data without the re-saving/re-compressing (and thus loss of information -- it actually uses a "trick"; there may be more direct libraries) required by the SetResolution approach. This was found on a quick google search, but I wanted to point out that all you need to do is modify the stored EXIF data.

    Also: .NET lib for EXIF modification and another SO question. Google owns when you know good search terms.

提交回复
热议问题