Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/308.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在不降低PC-C速度的情况下连续拍摄屏幕快照#_C#_Screenshot - Fatal编程技术网

C# 在不降低PC-C速度的情况下连续拍摄屏幕快照#

C# 在不降低PC-C速度的情况下连续拍摄屏幕快照#,c#,screenshot,C#,Screenshot,我必须在每250毫秒后连续为我的程序捕获一个屏幕截图(类似于Netmeeting)。我使用了以下代码: Image CaptureScreenShot() { bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb); gfxScreenshot = Graphics.FromImage

我必须在每250毫秒后连续为我的程序捕获一个屏幕截图(类似于Netmeeting)。我使用了以下代码:

Image CaptureScreenShot()
{
    bmpScreenshot = new Bitmap(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height, PixelFormat.Format32bppArgb);
    gfxScreenshot = Graphics.FromImage(bmpScreenshot);
    gfxScreenshot.CopyFromScreen(Screen.PrimaryScreen.Bounds.X, Screen.PrimaryScreen.Bounds.Y, 0, 0, Screen.PrimaryScreen.Bounds.Size, CopyPixelOperation.SourceCopy);
    return bmpScreenshot;
}
捕捉屏幕截图,但会降低PC的性能。其中,Netmeeting不会。 有没有办法在不降低电脑速度的情况下拍摄屏幕?
代码示例将不胜感激

您在这里找不到基本答案。他们使用更复杂的机制来检测屏幕上的变化并发送它们。 查看终端SVC的工作原理-


理想情况下,您可以连接到GUI并监视事件等,这比简单的屏幕抓取要高级得多。如果您想查看不太高级的代码,请检查此方法是否用于流式处理?您如何调用此方法?你真的需要每秒拍摄4次屏幕截图吗?平均每分钟240次,每小时14400次。你确定Netmeeting就是这样做的,事实上Netmeeting并没有导致你的性能下降,这说明你错了。@Farid ur Rahman-如果我觉得质量不好,我不会提高你的声誉。“要求提高投票率意味着我会因为贫穷而否决它。”法里德·乌尔·拉赫曼,我很确定这就是为什么每个人都否决了你的问题。不要要求投票。时期