| 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 |
Thread2004.09.01 17:08 "Re: DPI setting", by Andrey KiselevOn Wed, Sep 01, 2004 at 09:50:15AM +0100, Patrick Harris wrote: > I made exactly the same mistake. The tags TIFFTAG_XRESOLUTION and > TIFFTAG_YRESOLUTION expect floating point values so by passing an > integer value of 300 the library will not correctly set the tags. Try > casting to float type static_cast< float >( 300 ) as this fixed it for > me. Hmm... I think it should be enough to use decimal delimiter when specifying the floating point number: '300.0'. Or, better '300.0F', to avoid casting warnings. -- Andrey V. Kiselev Home phone: +7 812 5274898 ICQ# 26871517 |
|||||||