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
July 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.07.06 10:18 "question of understanding / D7 and Var-Types", by Matthias Lach
2005.07.21 03:16 "Re: question of understanding / D7 and Var-Types", by Joris Van Damme
2005.07.21 14:09 "Re: question of understanding / D7 and Var-Types", by Frank Warmerdam
2005.07.21 14:21 "Re: question of understanding / D7 and Var-Types", by Chris Losinger
2005.07.21 16:13 "Re: question of understanding / D7 and Var-Types", by Joris Van Damme
2005.07.21 16:38 "Re: question of understanding / D7 and Var-Types", by Chris Losinger
2005.07.21 16:47 "Re: question of understanding / D7 and Var-Types", by Frank Warmerdam

2005.07.21 03:16 "Re: question of understanding / D7 and Var-Types", by Joris Van Damme

> " FirstPageYReso,FirstPageXReso: single; "
>   TIFFSetField(tifbild, TIFFTAG_XRESOLUTION, FirstPageXReso);
>   TIFFSetField(tifbild, TIFFTAG_YRESOLUTION, FirstPageYReso);
>
> just to store the value.

Matthias his problem got solved when we remembered

http://www.asmail.be/msg0055048683.html

Seems that we need Single to read the resolution tags with TIFFGetField, and a
variable of type Double (as opposed to a direct value, or a variable of other
type) to write with TIFFSetField. So the problem is solved on a trial-and-error
basis. It's strange though, the TIFFSetField man page says TIFFSetField expects
a float for setting the resolution tags, and this is equivalent to a Delphi
Single, not a Double. And it's also weird that a direct value doesn't work. If
someone has a more thorough understanding of why exactly, we would appreciate
more insight.



Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html