AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
March 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2005.03.03 17:19 "LibTIFF question", by Kalman Miklos
2005.03.03 17:48 "Re: LibTIFF question", by Frank Warmerdam
2005.03.03 18:04 "Re: LibTIFF question", by Bob Friesenhahn
2005.03.03 18:11 "Re: LibTIFF question", by Kalman Miklos
2005.03.03 18:28 "Re: LibTIFF question", by Frank Warmerdam
2005.03.03 19:19 "Re: LibTIFF question", by Bob Friesenhahn
2005.03.03 19:27 "Re: LibTIFF question", by Frank Warmerdam
2005.03.15 00:38 "Re: LibTIFF question", by Joris Van Damme
2005.03.15 07:56 "Re: LibTIFF question", by Frank Warmerdam
2005.03.15 16:06 "Re: LibTIFF question", by Joris Van Damme
2005.03.15 16:15 "Re: LibTIFF question", by Frank Warmerdam
2005.03.15 16:34 "Re: LibTIFF question", by Bob Friesenhahn

2005.03.03 17:19 "LibTIFF question", by Kalman Miklos

Hi!

If there is someone out there who knows LibTIFF please reply:
I am using LibTIFF I need to read tag information from a TIFF file. I 
know the code of the tag (it is not a standard tag) and I want to use 
GetField to retrieve the information stored in it. I can get the size of 
it, but cannot retrieve the value.

I open the file:
m_TIFF = TIFFOpen((char *)(LPCTSTR)m_FileName, "r");
...
I can read the width:
if (TIFFGetField(m_TIFF, TIFFTAG_IMAGEWIDTH, &ui32Val) == 0) {
               m_Width = "n/a";
           } else {
               itoa(ui32Val, m_Width.GetBuffer(4), 10);
               m_Width.ReleaseBuffer();
           }
..
but I have a tagID 50653 with a length of 121 and I cannot read those 
bytes:

if (TIFFGetField(m_TIFF, 50653, &iVal) == 0) {
               m_PtiOptions = "n/a";
           } else {
               itoa(iVal, m_PtiOptions.GetBuffer(4), 10);
               m_PtiOptions.ReleaseBuffer();
           }

...

Is there an easy way to get access to these 121 bytes maybe in a form of 
char buf[256], so I can later process this buffer?

Please help,

Thanks,
Miklos