- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
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)
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
A fortran sample(for saving an image) occurred in this Forum so you might reuse that code as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, the Fortran sample gave me the information I needed.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page