467,075 Members | 1,049 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,075 developers. It's quick & easy.

How can i get tiff header information

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
Nov 21 '05 #1
  • viewed: 6855
Share:
5 Replies
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

"Eddie Leung" <ed*****@image.com.hk> wrote in message
news:un****************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #2
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

"Eddie Leung" <ed*****@image.com.hk> wrote in message
news:un****************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #3
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 Leung" <ed*****@image.com.hk> wrote in message
news:un****************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #4
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 Leung" <ed*****@image.com.hk> wrote in message
news:un****************@tk2msftngp13.phx.gbl...
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

Nov 21 '05 #5
Eddie Leung wrote:
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/

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Arenz, Ralph | last post: by
7 posts views Thread by Albert Greinöcker | last post: by
reply views Thread by Eddie Leung | last post: by
reply views Thread by topdawg147@hotmail.com | last post: by
1 post views Thread by Bala | last post: by
3 posts views Thread by Christian Mauerer | last post: by
10 posts views Thread by =?Utf-8?B?UmludSBHb3BhbGFrcmlzaG5hIFBpbGxhaQ==?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.