c#调用摄像头拍摄,截图,视频

c#调用摄像头拍摄,截图,视频

ID:14035779

大小:43.85 KB

页数:5页

时间:2018-07-25

c#调用摄像头拍摄,截图,视频_第1页
c#调用摄像头拍摄,截图,视频_第2页
c#调用摄像头拍摄,截图,视频_第3页
c#调用摄像头拍摄,截图,视频_第4页
c#调用摄像头拍摄,截图,视频_第5页
资源描述:

《c#调用摄像头拍摄,截图,视频》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、C#调用摄像头拍摄,截图,视频 (2013-01-2914:35:43)分类: C#cs类:usingSystem.Runtime.InteropServices;usingSystem.Drawing.Imaging;namespaceWindowsFormsApplication2{    classPick    {        privateconstintWM_USER=0x400;        privateconstintWS_CHILD=0x40000000;        pr

2、ivateconstintWS_VISIBLE=0x10000000;        privateconstintWM_CAP_START=WM_USER;        privateconstintWM_CAP_STOP=WM_CAP_START+68;        privateconstintWM_CAP_DRIVER_CONNECT=WM_CAP_START+10;        privateconstintWM_CAP_DRIVER_DISCONNECT=WM_CAP_START+

3、11;        privateconstintWM_CAP_SAVEDIB=WM_CAP_START+25;        privateconstintWM_CAP_GRAB_FRAME=WM_CAP_START+60;        privateconstintWM_CAP_SEQUENCE=WM_CAP_START+62;        privateconstintWM_CAP_FILE_SET_CAPTURE_FILEA=WM_CAP_START+20;        privat

4、econstintWM_CAP_SEQUENCE_NOFILE=WM_CAP_START+63;        privateconstintWM_CAP_SET_OVERLAY=WM_CAP_START+51;        privateconstintWM_CAP_SET_PREVIEW=WM_CAP_START+50;        privateconstintWM_CAP_SET_CALLBACK_VIDEOSTREAM=WM_CAP_START+6;        privatecon

5、stintWM_CAP_SET_CALLBACK_ERROR=WM_CAP_START+2;        privateconstintWM_CAP_SET_CALLBACK_STATUSA=WM_CAP_START+3;        privateconstintWM_CAP_SET_CALLBACK_FRAME=WM_CAP_START+5;        privateconstintWM_CAP_SET_SCALE=WM_CAP_START+53;        privateconst

6、intWM_CAP_SET_PREVIEWRATE=WM_CAP_START+52;        privateIntPtrhWndC;        privateboolbStat=false;        privateIntPtrmControlPtr;        privateintmWidth;        privateintmHeight;        privateintmLeft;        privateintmTop;        ///         /

7、//初始化摄像头         ///         ///控件的句柄         ///开始显示的左边距         ///开始显示的上边距         ///要显示的宽度         ///要显示的长度         publicPick(IntPtrhandle,intleft,inttop,intwidth,intheight)        {            mControlPtr=handle;            mWidth=width;       

8、     mHeight=height;            mLeft=left;            mTop=top;        }        [DllImport("avicap32.dll")]        privatestaticexternIntPtrcapCreateCaptureWindowA(byte[]lpszWindowName,intdwStyle,intx,inty,intnWidth,intnHeight,IntPtrhW

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。