多页TIFF文件压缩 [英] Multipage TIFF file compression

查看:152
本文介绍了多页TIFF文件压缩的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一些示例代码(C#)压缩多页TIFF文件而不使用第三方库。我试图通过使用Image.SaveAs()方法来做到这一点,但最后我得到了一个比原来大得多的文件。

解决方案

部分是不使用第三方库。什么,甚至不是开源的?



实际上,这个问题非常简单。您不想使用任何第三方库。好的,但你还需要一个图书馆。由于.NET FCL没有支持多页TIFF功能的库,你必须自己编写这样的库。



好​​吧,试试这个CodeProject工作:将图像保存到多页TIFF文件中或添加图像到现有的TIFF文件 [ ^ ]。



微妙的问题是:如果你使用这个代码,它会帮助您,您认为自己使用的是第三方图书馆吗? :-)



如果这是一个问题或我的笔记让你考虑它,仍然要考虑这个开源库:http://bitmiracle.com/libtiff/ [ ^ ]。



万一你想要考虑它。



-SA

I am looking for some sample code (C#) compress a multipage TIFF file without using third party libraries. I tried to do it by using Image.SaveAs() method, but at the end i got a file with much bigger size than the original.

解决方案

The hard-part is "without using third party libraries". What, not even open-source?

Actually, the issue is very simple. You don''t want to use any third party library. All right, but you still need a library. As .NET FCL does not have the library supporting the multipage TIFF feature, you have to write such library by yourself.

Well, try this CodeProject work: Save images into a multi-page TIFF file or add images to an existing TIFF file[^].

The delicate question is: if you use this code and it will help you, will you consider yourself using a 3rd-party library or not? :-)

If it is a problem or my notes makes you thinking about it, still consider this open-source library: http://bitmiracle.com/libtiff/[^].

Just in case you wanted to think about it.

—SA


这篇关于多页TIFF文件压缩的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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