积极答复者
如何用C#调用系统API实现用摄像头拍照?

问题
-
如何用C#调用系统API实现用摄像头拍照,请高手指点,谢谢!
suifeng- 已移动 微软中文技术论坛Moderator 2009年5月20日 2:17 ([Loc]From:.NET Framework 一般性问题讨论区)
答案
-
你要引用 系统的avicap32.dll , 使用函数capCreateCaptureWindowA和 capGetVideoFormat创建截图串口和获取视频格式。具体的的代码可以参考:
1.急救,用API调用摄像头来拍照时遇到的问题!:http://topic.csdn.net/t/20060911/17/5014306.html
2.参考代码下载:http://www.pudn.com/downloads61/sourcecode/comm/windows_mobile/detail213056.html
you have a dream,you gonna protect it!- 已标记为答案 Riquel_DongModerator 2009年5月21日 2:01
-
你好,
这里也有一个例子,VB.NET的代码. 同样的方法在C#中。
http://www.vb-helper.com/howto_net_video_capture.html
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 Riquel_DongModerator 2009年5月21日 2:01
全部回复
-
你要引用 系统的avicap32.dll , 使用函数capCreateCaptureWindowA和 capGetVideoFormat创建截图串口和获取视频格式。具体的的代码可以参考:
1.急救,用API调用摄像头来拍照时遇到的问题!:http://topic.csdn.net/t/20060911/17/5014306.html
2.参考代码下载:http://www.pudn.com/downloads61/sourcecode/comm/windows_mobile/detail213056.html
you have a dream,you gonna protect it!- 已标记为答案 Riquel_DongModerator 2009年5月21日 2:01
-
你好,
这里也有一个例子,VB.NET的代码. 同样的方法在C#中。
http://www.vb-helper.com/howto_net_video_capture.html
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.- 已标记为答案 Riquel_DongModerator 2009年5月21日 2:01