AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2004.12.21 13:01 "[Tiff] Read X and Y Resolution", by Manuel_Galán
2004.12.21 13:07 "Re: [Tiff] Read X and Y Resolution", by Chris Losinger
2004.12.21 15:25 "Re: [Tiff] Read X and Y Resolution", by Joris

2004.12.21 13:07 "Re: [Tiff] Read X and Y Resolution", by Chris Losinger

  xres, yres: integer;

    TIFFGetField(han, TIFFTAG_XRESOLUTION,@xres);
    TIFFGetField(han, TIFFTAG_yRESOLUTION,@yres);

when i define xres and yres as double i obtain 5.56078e-315
and when defined as integer i obtain 1125515264

resolution is passed as a C "float", a four-byte floating point value.

         -c

----
Chris Losinger
losinger@earthlink.net
smallest@smalleranimals.com http://www.smalleranimals.com