sdlangers Posted July 1, 2003 Posted July 1, 2003 Hi, Im relatively new to the graphics end of things - GDI/GDI+/DirectX and was wondering if the directX sdk has a good way of capturing the desktop to a bitmap image. I have been using bitblt with getdesktopwindow, but i would like a managed code version. maybe theres some other managed way of doing it? thanks. Quote
*Experts* Nerseus Posted July 2, 2003 *Experts* Posted July 2, 2003 I'm not sure how to do it but I've seen tons of sample code searching google. You don't want DirectX for this - but you will probably want to use the Win32 API. I'd search google for "capture desktop screenshot c#" or something similar. -Ner Quote "I want to stand as close to the edge as I can without going over. Out on the edge you see all the kinds of things you can't see from the center." - Kurt Vonnegut
*Experts* Volte Posted July 2, 2003 *Experts* Posted July 2, 2003 I think the BitBlt way you were using before is probably the simplest and most efficient way. Quote
ThePentiumGuy Posted July 2, 2003 Posted July 2, 2003 actually tell the user to hit "printscreen" or alt+printscreen(to capture only the window) and paste it into paint.. or iirc, use like a sendkey function to force a printscreen, so the user doesnt have to press it, the program will ;) Quote My VB.NET Game Programming Tutorial Site (GDI+, Direct3D, Tetris [coming soon], a full RPG.... you name it!) vbprogramming.8k.com My Project (Need VB.NET Programmers) http://workspaces.gotdotnet.com/ResolutionRPG
sdlangers Posted July 2, 2003 Author Posted July 2, 2003 thanks i have been using bitblt and getdesktopwindow as volte force has helped me with - i was just trying to find some managed code way of doing it. i guess i'll have to stick with a little bit of unmanaged code. pentiumguy - thanks - but there are no users.. its an automated program thanks again volte force for your help with this and my previous posts Quote
*Experts* Volte Posted July 2, 2003 *Experts* Posted July 2, 2003 Glad I could help. :) Oh and my name is VolteFace thankyouverymuch ;) (honest mistake, I know). :) Quote
sdlangers Posted July 2, 2003 Author Posted July 2, 2003 man thats wierd... ive been reading your name all this time as volteforce !! thats mad.. i must get my eyes checked! my apologies! Quote
Duck11 Posted September 8, 2005 Posted September 8, 2005 actually tell the user to hit "printscreen" or alt+printscreen(to capture only the window) and paste it into paint.. or iirc, use like a sendkey function to force a printscreen, so the user doesnt have to press it, the program will ;) Hi! ScreenVidshot allows you capture not only the windom but the desktop too.http://www.geovid.com/Screen_VidShot/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.