AWARE [SYSTEMS]
AWare Systems, , Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
June 2005

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
Archive maintained by AWare Systems



New Datamatrix section



Valid HTML 4.01!



Thread

2005.06.21 09:17 "Tiff-Tags and Delphi7 / X and Y RESOLUTION / PHOTOMETRIC", by Matthias Lach
2005.06.21 11:30 "Re: Tiff-Tags and Delphi7 / X and Y RESOLUTION / PHOTOMETRIC", by Joris Van Damme
2005.07.21 03:16 "Re: Tiff-Tags and Delphi7 / X and Y RESOLUTION / PHOTOMETRIC", by Joris Van Damme

2005.07.21 03:16 "Re: Tiff-Tags and Delphi7 / X and Y RESOLUTION / PHOTOMETRIC", by Joris Van Damme

I wrote:
> var
>   FirstPageXReso: Single;
> begin
>   TIFFGetField(OpenTiff,TIFFTAG_XRESOLUTION,@FirstPageXReso);
>
> >   TIFFSetField(tifbild, TIFFTAG_XRESOLUTION, FirstPageXReso);
> >   TIFFSetField(tifbild, TIFFTAG_YRESOLUTION, FirstPageYReso);
>
> For setting, too, Single values will be required.

This information was wrong. See also

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.


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