| 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 |
Thread2009.07.02 12:03 "(no subject)", by Alejandro HerreroHello, 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); > * Once the image is generated, the values for the properties are xResolution = 1 and yResolution = 0 Can you please give us any hint about what is wrong? Thanks in advance Best Regards, Alex |
|||||||