gpt4 book ai didi

c# - 重新生成\保存图像时如何设置 "Resolution Unit"

转载 作者:太空宇宙 更新时间:2023-11-03 10:57:33 26 4
gpt4 key购买 nike

我正在尝试调查我认为在生成 TIF 图像的应用程序中遇到的问题。

为了做到这一点,我尝试自己重新生成\保存图像,然后 msdn Encoder.Compression example (除了我使用的是 CompressionCCITT4)。

输出文件的“分辨率单位”= 2,但我想将其设置为 1。

问题:

关于如何设置“分辨率单位”有什么想法吗?

对图像的效果有什么想法吗?

谢谢!

最佳答案

免责声明:作为一名 Java 专家,我不知道如何使用您描述的库进行设置。所以我只回答问题第 2 部分:

Any ideas on the effect that would\should have on the image?

快速的回答是:无。只有当您将图像导入页面设置/布局程序、文字处理器、打印等时才重要。但是很多软件只是假设 72dpi无论在 x/y 维度上。

这是 TIFF 规范的内容:

Typically, TIFF pixel- editors do not care about the resolution, but applications (such as page layout programs) do care.

和:

1 = No absolute unit of measurement. Used for images that may have a non-square aspect ratio, but no meaningful absolute dimensions.

The drawback of ResolutionUnit=1 is that different applications will import the imageat different sizes. Even if the decision is arbitrary, it might be better to use dots perinch or dots per centimeter, and to pick XResolution and YResolution so that the aspect ratio is correct and the maximum dimension of the image is about four inches (the “four” is arbitrary.)

关于c# - 重新生成\保存图像时如何设置 "Resolution Unit",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18900600/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com