我正在尝试在Windows 7登录屏幕(或切换用户屏幕)上使用打印屏幕以在我的应用程序中使用。
事实上,我不知道该怎么做。有谁可以帮助我?
答案 0 :(得分:5)
您需要创建一个Windows服务,以便即使用户未登录也可以运行,请查看此article,有关详细信息,请阅读MSDN ..
截图:
ScreenCapture sc = new ScreenCapture();
// capture entire screen, and save it to a file
Image img = sc.CaptureScreen();
// display image in a Picture control named imageDisplay
this.imageDisplay.Image = img;
// capture this window, and save it
sc.CaptureWindowToFile(this.Handle,"C:\\temp2.gif",ImageFormat.Gif);
来源:http://www.developerfusion.com/code/4630/capture-a-screen-shot/