在C#中加载.tiff文件 [英] To load .tiff file in C#
本文介绍了在C#中加载.tiff文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我必须加载.tiff文件
I have to load .tiff file
我同时使用了 Image.FromFile()
和 Bitmap.FromFile()
但是他们抛出了 OutOfMemoryException
有什么解决方案可以加载吗?
Any solution for how to load this?
推荐答案
我假设您尝试加载的TIFF文件使用的压缩格式与.Net不兼容.即,.Net不支持 JPEG压缩.
I assume that the TIFF file you are trying to load uses a compression that is not compatible with .Net. Namely the JPEG compression is not supported by .Net.
我建议您尝试 LibTiff.Net (尽管我无法确定它是否可以工作):
I suggest you try LibTiff.Net (though I cannot tell for sure if it will work):
这篇关于在C#中加载.tiff文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文