本文介绍了如何在C#中检查损坏的TIFF图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了如何检查TIFF文件是否损坏.大多数建议将Image.FromFile函数包装在try块中.如果抛出OutOfMemoryException,则其损坏.有人用过吗?有效吗有其他选择吗?

I searched on how to check if a TIFF file is corrupt or not. Most suggests wrapping the Image.FromFile function in a try block. If it throws an OutOfMemoryException, its corrupt. Has anyone used this? Is it effective? Any alternatives?

推荐答案

请检出名为LibTiff .NET的免费软件.它具有检查TIF文件中的每个页面是否损坏的功能.即使部分损坏也没问题

Please check out the freeware called LibTiff .NET. It has the function to check if every page in a TIF file is corrupted or not. Even partially corrupt also no problem

http://bitmiracle.com/libtiff/

谢谢

这篇关于如何在C#中检查损坏的TIFF图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-22 21:41