问题
I've found a way to create virtual desktops with c#. Now I was wondering if we can take a screenshot of a particular desktop and if so how ?
Thanks in advance
Blizz
回答1:
HAve you tried the CopyFromScreen
method in the GFX Object
Graphics g = new Graphics();
g.CopyFromScreen( ....params.... )
回答2:
I haven't tried it but the first thing I'd try is:
- create a new thread
- switch the thread to the new desktop by calling SetThreadDesktop
- take a screen shot
- switch thread back
might just work.
来源:https://stackoverflow.com/questions/922546/c-sharp-screen-capture-virtual-desktop