AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
December 2016

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

2016.12.13 14:42 "WinAPI, save screenshot into tiff", by Marcel Urbach
2016.12.13 15:18 "Re: WinAPI, save screenshot into tiff", by Paavo Helde

2016.12.13 15:18 "Re: WinAPI, save screenshot into tiff", by Paavo Helde

On 13.12.2016 16:42, Urbach, Marcel [Rohmann GmbH] wrote:
>
> Hello Guys
>
> 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".

Cheers
Paavo