473,387 Members | 1,465 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Capture Desktop Image

Hi all,

Could anyone kindly point me the way to capture the desktop image (include
the desktop icon) as bitmap ?

Thank a lot

Best regard,
Bsiang
Nov 15 '05 #1
3 5975
I don't know if this would work, it's just a suggestion:
1) minimize all windows (I seem to remember an article describing how to
enumerate all the windows)
2) send send the PrintScreen keycode
3) read the clipboard contents into a System.Drawing.Bitmap

note: I highly doubt there's a way to capture the screen without minimizing
everything first.

Chris
"Bsiang Tan" <tb*********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi all,

Could anyone kindly point me the way to capture the desktop image (include
the desktop icon) as bitmap ?

Thank a lot

Best regard,
Bsiang

Nov 15 '05 #2
I don't know if this would work, it's just a suggestion:
1) minimize all windows (I seem to remember an article describing how to
enumerate all the windows)
2) send send the PrintScreen keycode
3) read the clipboard contents into a System.Drawing.Bitmap

note: I highly doubt there's a way to capture the screen without minimizing
everything first.

Chris
"Bsiang Tan" <tb*********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi all,

Could anyone kindly point me the way to capture the desktop image (include
the desktop icon) as bitmap ?

Thank a lot

Best regard,
Bsiang

Nov 15 '05 #3
I agree that you will probably have to cause the minimize. You might be able
to hook into the "show desktop" function in XP (ie <windows key>-D).

To take the snapshot, you can use this class:

http://www.gotdotnet.com/Community/U...B-81F266CE8DE2

--
Eric Gunnerson

Visit the C# product team at http://www.csharp.net
Eric's blog is at http://blogs.gotdotnet.com/ericgu/

This posting is provided "AS IS" with no warranties, and confers no rights.
"Chris LaJoie" <ch***@etriptrader.com> wrote in message
news:OE**************@tk2msftngp13.phx.gbl...
I don't know if this would work, it's just a suggestion:
1) minimize all windows (I seem to remember an article describing how to
enumerate all the windows)
2) send send the PrintScreen keycode
3) read the clipboard contents into a System.Drawing.Bitmap

note: I highly doubt there's a way to capture the screen without minimizing everything first.

Chris
"Bsiang Tan" <tb*********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi all,

Could anyone kindly point me the way to capture the desktop image (include the desktop icon) as bitmap ?

Thank a lot

Best regard,
Bsiang


Nov 15 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bsiang Tan | last post by:
Hi all, Could anyone kindly point me the way to capture the desktop image (include the desktop icon) as bitmap ? Thank a lot Best regard, Bsiang
0
by: hellokitty | last post by:
GetDC/GetWindowDC can only capture on screen,visually, stuff and not for screen in background If I execute an exe in other desktop, by CreateDesktop/SwitchDesktop, it requires to actually...
5
by: TerryWilson | last post by:
I am developing a web based service tool using asp.net that we will distribute with our product. This service tool will be used for remotely configuring the product, problem determination, etc. ...
1
by: JP2006 | last post by:
I'm trying to write a control that will take a screen capture of a particular website when a user submits a form in a web application; one of the form fields is for a URL - the control needs to get...
1
by: jcmag | last post by:
I would like to take a "screen capture" of just a Form. I've done the following: internal void CaptureScreen() { Graphics g1 = CreateGraphics(); Image MyImage = new...
0
Atran
by: Atran | last post by:
Hello Every Body. Anyone know how to Capture The Computer Screen Picture, I mean The desktop, Capture the picture of the Desktop.
5
Atran
by: Atran | last post by:
Hello Everyone. In this article: You will know to capture the screen in 2 ways: 1)- Capture full screen. 2)- Capture region. Let's Begin: First make a new Windows Application project. And...
0
by: ikramalikhan | last post by:
i am developing a software in vb 6.0 as front end and msaccess as back end..i want to capture an ultrasound image via my vb form image control.my doctor client will capture live ultrasound image and...
4
by: ink | last post by:
Hi All, I am trying to build an image capture user control using DirectShow to be used in an existing C# application. It needs to have a view finder/ preview window and be able to take...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.