To load .tiff file in C#

2019-06-18 23:26发布

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?

标签: c# tiff
4条回答
Ridiculous、
2楼-- · 2019-06-19 00:00

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

查看更多
Anthone
3楼-- · 2019-06-19 00:16

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

查看更多
啃猪蹄的小仙女
4楼-- · 2019-06-19 00:18

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):

查看更多
甜甜的少女心
5楼-- · 2019-06-19 00:24

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

查看更多
登录 后发表回答