如何创建编写代码以使用网络摄像头拍摄快照 [英] How to create write the code for taking snapshot using webcam
本文介绍了如何创建编写代码以使用网络摄像头拍摄快照的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨
我已经完成了摄像头捕获的编码,但是现在我想对捕获屏幕进行快照.
Hi
I have done the coding of the webcam capturing but now i want to take snapshot of the capturing screen.
推荐答案
在CodeProject上查看本文: ^ ]
Look at this article on CodeProject : Versatile WebCam C# library[^]
我已经通过执行Followong方法做到了这一点:
I have done this by doing followong method:
private void btnSnap_Click(object sender, EventArgs e)
{
pictureBox1.Image = pictureBox2.Image;
if (FinalVideo.IsRunning)
{
FinalVideo.Stop();
}
}
//其中pictureBox1用于网络摄像头
//和
//pictureBox2用于从pictureBox1捕捉图片.
//where pictureBox1 is for webcam
//and
// pictureBox2 is for the snaping the the picture from pictureBox1.
这篇关于如何创建编写代码以使用网络摄像头拍摄快照的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文