2016.12.13 15:18 "Re: [Tiff] WinAPI, save screenshot into tiff", by Paavo Helde
On 13.12.2016 16:42, Urbach, Marcel [Rohmann GmbH] wrote:
I want to capture a screenshot by using winapi only (no MFC wanted) and save it as bitmap into a tiff file.
The screen is captured correctly, but it looks like the bitmap is saved 4 times into the tiff and now looks like this:
TIFFSetField( tiff, TIFFTAG_BITSPERSAMPLE, info.bmiHeader.biBitCount );
biBitCount is 24 for typical RGB images, but you need to pass 8 to libtiff as this number is "per sample".