Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I have tiff file.

How to validate any image file(.Tiff)in C# code?

Please help me out.

Thanks in Adv
Posted
Updated 26-Jan-11 22:01pm
v3
Comments
Dalek Dave 27-Jan-11 3:35am    
Edited for Grammar, Spelling and Readability.

1 solution

This[^] may help you.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Jan-11 3:18am    
That is pretty nice little thing - my 5.
However, I don't understand what to validate. I would ask for criteria for validation, if OP understands it. Otherwise, opened as TIFF => valid. Or something else?
Abhinav S 27-Jan-11 3:24am    
Yes. The OP can probably just try to load the file and if that suceeds then its a TIFF. Something like ImageCodecInfo info=GetEncoderInfo("image/tiff"); may help the OP.
Dalek Dave 27-Jan-11 3:35am    
Good Call.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900