Reading the screen bitmap

Reading the screen bitmap

I would like to click on a button and have the entire screen saved to a
BMP file. I can save the screen contents using PrtSc and pasting the
clipboard into Paint and saving from there. But it would be neater to be
able to do it from within my program. So how do I read the the screen
bitmap? (GETIMAGE only reads the window bitmap)

3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

MSDN has a full sample doing just that, written in C (it's even in old Win32 helps). The title is "Capturing an Image" (it consists of several consecutive pages). Search your Win32 API reference or MSDN.

A fortran sample(for saving an image) occurred in this Forum so you might reuse that code as well.

Jugoslav www.xeffort.com

Thanks, the Fortran sample gave me the information I needed.

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen