C#屏幕捕捉虚拟桌面 [英] c# screen capture virtual desktop

查看:250
本文介绍了C#屏幕捕捉虚拟桌面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经找到一种方法来创建与C#虚拟桌面。现在,我在想,如果我们可以采取一个特定的桌面截图如果又如何?

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 ?

感谢

暴雪

推荐答案

我还没有尝试过,但我想尝试的第一件事是:

I haven't tried it but the first thing I'd try is:


  • 创建一个新的线程

  • 通过调用SetThreadDesktop

  • 切换线程新的桌面
  • 获取屏幕截图

  • 开关线回

  • create a new thread
  • switch the thread to the new desktop by calling SetThreadDesktop
  • take a screen shot
  • switch thread back

可能只是工作。

这篇关于C#屏幕捕捉虚拟桌面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆