2004.09.01 05:23 "[Tiff] DPI setting", by Poom

2004.09.01 17:08 "Re: [Tiff] DPI setting", by Andrey Kiselev

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