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

2004.09.01 08:50 "RE: [Tiff] DPI setting", by Patrick Harris


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.