我想捕获应用程序窗口的截图。我可以用下面的方法做到这一点。但是,是否可以这样做,还是必须按顺序进行?并行的C#屏幕捕捉?
我目前利用的this:
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);
有没有什么办法可以采取并行的屏幕截图为两个或多个应用程序窗口?
说实话,我不是在寻找各种方法来使用上面的类,但要明白,如果它能够在同一时间捕获窗口的图像这样做是为了在parrallel另一个窗口即? – Abs 2011-04-07 21:13:26
那么你的问题的答案是肯定的。库中的代码实际上可以全部由静态的,因为其中没有在构造正在做并没有什么不本地范围的函数变量。 – 2011-04-07 21:55:39