AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2004

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2004.09.01 05:23 "DPI setting", by <poom@kosugi-msoft.jp>
2004.09.01 08:50 "Re: DPI setting", by Patrick Harris
2004.09.01 08:59 "Re: DPI setting", by <poom@kosugi-msoft.jp>
2004.09.01 17:08 "Re: DPI setting", by Andrey Kiselev
2004.09.01 13:55 "Re: DPI setting", by Frank Warmerdam

2004.09.01 05:23 "DPI setting", by <poom@kosugi-msoft.jp>

Hi,

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);
   TIFFSetField(tif, TIFFTAG_SAMPLESPERPIXEL, 3);
   int rowperstrip =TIFFDefaultStripSize(tif, imageW*3);
   TIFFSetField(tif, TIFFTAG_ROWSPERSTRIP, rowperstrip);

   TIFFSetField(tif, TIFFTAG_COMPRESSION, 1);
   TIFFSetField(tif, TIFFTAG_PHOTOMETRIC,PHOTOMETRIC_RGB);

   TIFFSetField(tif, TIFFTAG_PLANARCONFIG, PLANARCONFIG_CONTIG);
    
   TIFFSetField(tif, TIFFTAG_XRESOLUTION,300);
   TIFFSetField(tif, TIFFTAG_YRESOLUTION,300);
   TIFFSetField(tif, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);

But resulted TIFF file 's DPI was 72 .
I try to correct this problem but now I can't found the way.
Please tell me the right way to solve it.
Thank you so much

poom