如何改变图像的分辨率(DPI)? [英] How to change resolution (DPI) of an image?

查看:261
本文介绍了如何改变图像的分辨率(DPI)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个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.

<一个href="http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=C%23+modify+exif">Also: .NET lib中的EXIF修改以及另一 SO质疑 。当你知道良好的搜索字词谷歌拥有。

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

这篇关于如何改变图像的分辨率(DPI)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆