| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2006.07.24 07:33 "Re: Group 3 Fax", by Joris Van DammeM.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 |
|||||||