Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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.

  • *Experts*
Posted

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

"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
Posted

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 ;)

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

Posted

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

  • 2 years later...
Posted
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/

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...