2004.09.01 05:23 "[Tiff] DPI setting", by Poom

2004.09.01 13:55 "Re: [Tiff] DPI setting", by Frank Warmerdam

Now I can generate TIFF file .However,when I check my tiff file with photoshop,my picture's DPI value is strange!

On setting tag ,I setted like this.

   TIFFSetField(tif, TIFFTAG_IMAGEWIDTH, imageW);
   TIFFSetField(tif, TIFFTAG_IMAGELENGTH, imageH);
   TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8,8,8);

Poom,

On an unrelated point, I believe you are only supposed to pass a single value when setting TIFFTAG_BITSPERSAMPLE.

eg.

      TIFFSetField(tif, TIFFTAG_BITSPERSAMPLE, 8 );

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam@pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent