从网络摄像头捕获图像并保存 [英] Image capturing from webcam and saving it

查看:166
本文介绍了从网络摄像头捕获图像并保存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#WinForm中如何从网络摄像头保存捕获的图像?..我有以下代码..

In C# WinForm how to save a captured image from a webcam?..i have a code below..

string strGrabFileName = String.Format("C:\\Snapshot.jpg", DateTime.Now);
bitmap.Save(strGrabFileName, System.Drawing.Imaging.ImageFormat.Jpeg);



当我点击捕获按钮时它显示最后一个错误line..anyone帮我解决..


when i click on the capture button it shows an error on the last line..anyone help me to solve it..

推荐答案

确保你有权使用c盘写入。将路径更改为其他驱动器并检查。
make sure you have access to write in c drive. change the path to some other drive and check.


这篇关于从网络摄像头捕获图像并保存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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