| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2005.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 |
|||||||