• 大小: 47KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: c#  调用C++  CSharp  UVC  camera  

资源简介

c# 调用摄像头 包含图片截取函数 和timer实例

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace camera
{
    public partial class frmMain : Form
    {
        private int hHwnd;                 //Use for camera 
        private Graphics g;

        public frmMain()
        {
            InitializeComponent();
            g = panelTarget.CreateGraphics();
        }


        #region Camera Init & Functions

        public struct videohdr_tag
        {
            public byte[] lpData;
            public int dwBufferLength;
            public int dwBytesUsed;
            public int dwTimeCaptured;
            public int dwUse

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      14848  2010-04-12 21:40  camera\camera\bin\Debug\camera.exe

     文件      30208  2010-04-12 21:40  camera\camera\bin\Debug\camera.pdb

     文件      14328  2010-07-07 18:54  camera\camera\bin\Debug\camera.vshost.exe

     文件        490  2007-07-21 01:33  camera\camera\bin\Debug\camera.vshost.exe.manifest

     文件       3807  2010-04-04 06:27  camera\camera\camera.csproj

     文件      11103  2010-04-12 21:40  camera\camera\Form1.cs

     文件       7714  2010-04-10 23:47  camera\camera\Form1.Designer.cs

     文件       6402  2010-04-10 23:47  camera\camera\Form1.resx

     文件        555  2010-07-07 18:54  camera\camera\obj\Debug\camera.csproj.FileListAbsolute.txt

     文件        847  2010-04-10 23:47  camera\camera\obj\Debug\camera.csproj.GenerateResource.Cache

     文件      14848  2010-04-12 21:40  camera\camera\obj\Debug\camera.exe

     文件        180  2010-04-10 23:47  camera\camera\obj\Debug\camera.frmMain.resources

     文件      30208  2010-04-12 21:40  camera\camera\obj\Debug\camera.pdb

     文件        180  2010-04-04 06:27  camera\camera\obj\Debug\camera.Properties.Resources.resources

     文件        489  2010-04-04 03:37  camera\camera\Program.cs

     文件       1370  2010-04-04 03:03  camera\camera\Properties\AssemblyInfo.cs

     文件       2862  2010-04-04 03:03  camera\camera\Properties\Resources.Designer.cs

     文件       5612  2010-04-04 03:03  camera\camera\Properties\Resources.resx

     文件       1091  2010-04-04 03:03  camera\camera\Properties\Settings.Designer.cs

     文件        249  2010-04-04 03:03  camera\camera\Properties\Settings.settings

     文件        908  2010-04-04 03:03  camera\camera.sln

    ..A..H.     15872  2010-07-07 19:48  camera\camera.suo

     目录          0  2010-04-04 03:08  camera\camera\obj\Debug\Refactor

     目录          0  2010-04-04 03:03  camera\camera\obj\Debug\TempPE

     目录          0  2010-04-04 03:37  camera\camera\bin\Debug

     目录          0  2010-04-12 21:40  camera\camera\obj\Debug

     目录          0  2010-04-04 03:03  camera\camera\bin

     目录          0  2010-04-04 03:03  camera\camera\obj

     目录          0  2010-04-04 03:03  camera\camera\Properties

     目录          0  2010-04-12 21:40  camera\camera

............此处省略4个文件信息

评论

共有 条评论