To load .tiff file in C#

自古美人都是妖i 提交于 2019-12-30 18:52:41

问题


I have to load .tiff file

I did with both Image.FromFile() and Bitmap.FromFile()

But they are throwing OutOfMemoryException

Any solution for how to load this?


回答1:


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.

I suggest you try LibTiff.Net (though I cannot tell for sure if it will work):




回答2:


I use ImageGlue. It can convert a lot more then just tiff.




回答3:


There is a project on codeproject: "How to Load/Display images with C#". Take a look at it




回答4:


There is a possibility that this issue occurred due to multiple image tiff file. In this case, you have to extract individual image files from the source tiff file and then view those frame by frame. Here is a sample code.

http://www.c-sharpcorner.com/Blogs/10924/how-to-save-split-merge-and-view-multipage-tiff-image.aspx



来源:https://stackoverflow.com/questions/4265491/to-load-tiff-file-in-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!