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 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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.

Leave a Comment

Please sign in to add a comment. Not a member? Join today