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
July 2006

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

2006.07.24 06:35 "Group 3 Fax", by M S Namvari
2006.07.24 07:33 "Re: Group 3 Fax", by Joris Van Damme

2006.07.24 07:33 "Re: Group 3 Fax", by Joris Van Damme

M.S.Namvari,

M.S.Namvari wrote:
> 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