AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2006.07.24 06:35 "[Tiff] Group 3 Fax", by M.S.Namvari
2006.07.24 07:33 "Re: [Tiff] Group 3 Fax", by Joris

2006.07.24 07:33 "Re: [Tiff] Group 3 Fax", by Joris

M.S.Namvari,

I am using Delphi LibTiff.Want to create a Fax 3 Tiff file to

sending fax with modem or dialogic borads.I use this setting:

TIFFSetField(OpenTiff, TIFFTAG_XRESOLUTION, 200);
TIFFSetField(OpenTiff, TIFFTAG_YRESOLUTION, 200);

But in output file XResolution and YResolution is Zero.

Asuming you are refering to LibTiffDelphi, it is a known problem. It works only if you pass a variable declared as double to TIFFSetField to set tags like TIFFTAG_XRESOLUTION and TIFFTAG_YRESOLUTION. So change the above two lines of your code to look like this:

var
  m: Double;
begin
  ...
  m=200;
  TIFFSetField(OpenTiff, TIFFTAG_XRESOLUTION, m);
  TIFFSetField(OpenTiff, TIFFTAG_YRESOLUTION, m);

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