- 2005.06.21 11:30 "Re: [Tiff] Tiff-Tags and Delphi7 / X and Y RESOLUTION / PHOTOMETRIC", by Joris Van Damme
- 2005.07.06 10:18 "[Tiff] question of understanding / D7 and Var-Types", by Matthias Lach
2005.07.21 03:16 "Re: [Tiff] 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