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 2009

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

2009.07.02 12:03 "(no subject)", by Alejandro Herrero
2009.07.02 18:18 "Re: (no subject)", by Bob Friesenhahn

2009.07.02 18:18 "Re: (no subject)", by Bob Friesenhahn

> Hello,
> We are not able to correctly define the XRESOLUTION and YRESOLUTUON
> properties when generating a TIFF image. The values seem to be correctly
> established and the compilation and execution are right so that the image is
> correctly generated. But when checking the DPI values, they are incorrect.
> We attach the section of the code implied:
>
> *float xres, yres;
>> xres = 300.0;
>> yres = 200.0;
>> TIFFSetField(out, TIFFTAG_RESOLUTIONUNIT, RESUNIT_INCH);
>> TIFFSetField(out, TIFFTAG_XRESOLUTION, xres);
>> TIFFSetField(out, TIFFTAG_YRESOLUTION, yres);

Is there really supposed to be a '*' in front of 'float xres, yres'?

Bob
--
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/