How can i get tiff header information

  • Thread starter Thread starter Eddie Leung
  • Start date Start date
E

Eddie Leung

Hi All,

As I know that the tiff contain header information, I can use one software
called tifftags.exe to get tiff tag information. However, I can't get any
reference from vb.net to do such feature. Please advise..

Thanks.

Eddie
 
And so you would have your code create a file object, open your tiff file
and manually evaluate each byte

At the front there should be patterns, whatever they are, FF, AA, 55, FF,
then file attributes, a checksum, other info, the tiff data and some footer
(end of file info)

Write out on paper how you want to validate a tiff file, then create
variable names to associate to your tag information use the Switch statement
to parse, and then test it.

Uh oh, this sounds interesting. If there is a built in method? Im not aware
of it
 
Some tiff tags like height, width, colour depth and so on are decoded into
the standard image parameters. Other tags are provided as PropertyItems. The
GDI+ FAQ has a demo program that explains how to extract the property items
from an image and display their content.

--
Bob Powell [MVP]
Visual C#, System.Drawing

Find great Windows Forms articles in Windows Forms Tips and Tricks
http://www.bobpowell.net/tipstricks.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/faqmain.htm

All new articles provide code in C# and VB.NET.
Subscribe to the RSS feeds provided and never miss a new article.
 
Eddie said:
Hi All,

As I know that the tiff contain header information, I can use one software
called tifftags.exe to get tiff tag information. However, I can't get any
reference from vb.net to do such feature. Please advise..

Thanks.

Eddie
If all else fails, you could always write your own identifier. Specs on
the format can be found on the web, i.e.: http://www.wotsit.org/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top