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
November 2004

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

2004.11.18 18:05 "Using TIFFGetField to get a "Rational"", by Stephen Billard
2004.11.18 19:40 "Re: Using TIFFGetField to get a "Rational"", by Ulf Zibis
2004.11.18 19:55 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.18 20:16 "Re: Using TIFFGetField to get a "Rational"", by Eric Vergnaud
2004.11.18 22:30 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.19 00:17 "Re: Using TIFFGetField to get a "Rational"", by Eric Vergnaud
2004.11.19 00:35 "Re: Using TIFFGetField to get a "Rational"", by Bob Friesenhahn
2004.11.19 00:49 "Re: Using TIFFGetField to get a "Rational"", by Eric Vergnaud
2004.11.19 00:52 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.19 01:29 "Re: Using TIFFGetField to get a "Rational"", by Bob Friesenhahn
2004.11.19 01:38 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.19 17:51 "Autoreply to the list - Yes or No ?", by Ulf Zibis
2004.11.19 22:03 "Re: Autoreply to the list - Yes or No ?", by Joris Van Damme
2004.11.20 15:33 "Re: Autoreply to the list - Yes or No ?", by Ulf Zibis
2004.11.20 17:22 "Re: Autoreply to the list - Yes or No ?", by Joris Van Damme
2004.11.19 00:42 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.19 17:29 "Re: Using TIFFGetField to get a "Rational"", by Ulf Zibis
2004.11.19 17:43 "Re: Using TIFFGetField to get a "Rational"", by Bob Friesenhahn
2004.11.19 21:26 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.20 15:21 "Re: Using TIFFGetField to get a "Rational"", by Ulf Zibis
2004.11.20 16:57 "Re: Using TIFFGetField to get a "Rational"", by Bob Friesenhahn
2004.11.20 17:27 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.20 17:35 "Re: Using TIFFGetField to get a "Rational"", by Chris Losinger
2004.11.23 20:35 "Re: Using TIFFGetField to get a "Rational"", by Andrey Kiselev
2004.11.18 19:48 "Re: Using TIFFGetField to get a "Rational"", by Joris Van Damme
2004.11.23 14:58 "Using TIFFGetField to get a "Rational"", by Frank Warmerdam
2004.11.23 15:29 "Re: Using TIFFGetField to get a "Rational"", by Eric Vergnaud
2004.11.23 20:34 "Re: Using TIFFGetField to get a "Rational"", by Andrey Kiselev

2004.11.18 20:16 "Re: Using TIFFGetField to get a "Rational"", by Eric Vergnaud

> > When I remember right, you get to values, and must interpret them as
> > divident/divisor
> 
> That is certainly true on the TIFF tag value level. However, if I remember
> correctly, LibTiff does that already, and returns the value as a Float. That
> seems backed up by the link I mentioned in my other mail in this thread.
> 
> Perhaps someone with a normal LibTiff compilation could doublecheck. I'm
> getting
> good results in LibTiffDelphi passing a pointer to a pascal Single, and I do
> think that the C equivalent of that is Float, but it would nice if someone
> doublechecked.


Yes, here it is:

    case TIFFTAG_XRESOLUTION:
            *va_arg(ap, float*) = td->td_xresolution;
            break;
    case TIFFTAG_YRESOLUTION:
            *va_arg(ap, float*) = td->td_yresolution;
            break;

So you should pass a float* to TIFFGetField.

-------------------------------
Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com
-------------------------------