2008.05.08 05:34 "[Tiff] Getting all tags present in an image", by Amarnath S

Hi,

I am writing an application in C++/VC++ to read the contents of all tags in a TIFF image, and then to duplicate them into another TIFF image. In addition, I am also writing my own application-specific data into one of the private tags of TIFF.

Now, the first task is to get a list of all tags present in an image, and then to get their values. To get the value corresponding to a tag, I use TIFFGetField(...). But, how do I get a list of all tags present in an image?

Thanks and Regards
- Amarnath
amarnaths@vjt.com