如何改变图像的分辨率(DPI)?图像、分辨率、DPI

2023-09-02 20:49:23 作者:琴弦低声唱离别。

我有一个JPEG图片与72一个DPI我想换72 DPI为300 dpi。

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

使用C#我怎么能更改JPEG图片的分辨率?

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

推荐答案

关于修改

本文会谈< A HREF =htt​​p://en.wikipedia.org/wiki/Exchangeable_image_file_format> EXIF​​数据的未经重新保存/重新玉米pressing(并因此丢失信息 - 它实际上使用一个由 SetResolution 办法要求可能会有更直接的库);绝招。这是发现一个快速谷歌搜索,但我想指出的是,你的需要的要做的是修改存储的EXIF数据。

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中的EXIF修改以及另一 SO质疑 。当你知道良好的搜索字词谷歌拥有。

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