用C#捕获摄像头.docVIP

  • 3
  • 0
  • 约 19页
  • 2016-05-23 发布于河南
  • 举报
用C#捕获摄像头 现在很多摄像头都是无驱动的,这种方法我试验没有成功,不知道各位高人有没有这方面的经验,网上也一直再问如何做视频录像,有知道的朋友麻烦给个参考地址。 文章最后提供了一个这个小程序的下载 (1)安装摄像头后,一般可以找到一个avicap32.dll文件,里面有一些操作摄像头的方法。 (2)这是一个关于摄像头的类: using System; using System.Runtime.InteropServices; namespace webcam { /**//// /// avicap 的摘要说明。 /// public class showVideo { // showVideo calls [DllImport(avicap32.dll)] public static extern IntPtr capCreateCaptureWindowA(byte[] lpszWindowName, int dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, int nID); [DllImport(avicap32.dll)] public static extern bool capGetDriverDescriptionA(short wDrive

文档评论(0)

1亿VIP精品文档

相关文档