Snapshot the screen

Posted on 2000-03-20
Last Modified: 2013-11-20
I have an hwnd that I do not control its OnPaint. I want to get create a bmp file that capture the window bitmap pixels. How can i do it?????
Question by:dvory
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Accepted Solution

tchalkov earned 50 total points
ID: 2635839
there is a good example on how to capture the whole screen in MSDN under the "Capturing an Image" title - search for it.
It can easily be modified to capture a specific window, not the whole screen
LVL 31

Expert Comment

ID: 2635864
LVL 31

Expert Comment

ID: 2635873
tchalkov, the given example does not provide any possibility to save image as bmp...

Expert Comment

ID: 2635884
In the same topic two titles bellow there is one called "Storing an image". It describes storing a bitmap.

BTW the whole topic is a good reading to start with.

Featured Post

 Watch the Recording: Learning MySQL 5.7

MySQL 5.7 has a lot of new features. If you've dabbled with an older version of MySQL, it is definitely worth learning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

634 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question