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 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

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.


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

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui