• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-02-11
  • 语言: C#
  • 标签: C#  

资源简介

C#基于AForge的视频捕获方案,可以实现快照和录像

资源截图

代码片段和文件信息

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 AForge.Video;
using AForge.Video.DirectShow;

namespace AForgeCapture
{
    public partial class frmReplay : Form
    {
        public frmReplay()
        {
            InitializeComponent();
        }

        private void btnOpen_Click(object sender EventArgs e)
        {
            openFileDlg.Filter = “*.avi|*.avi“;
            if (openFileDlg.ShowDialog() == DialogResult.OK)
            {
                FileVideoSource fileSource = new FileVideoSource(openFileDlg.FileName);
                OpenVideoSource(fileSource);
            }
        }

        private void 

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

    .CA....      5947  2013-07-16 09:57  AForgeCapture\AForgeCapture\AForgeCapture.csproj

    .CA....       117  2013-07-15 20:08  AForgeCapture\AForgeCapture\app.config

    .CA....     48128  2013-03-12 22:10  AForgeCapture\AForgeCapture\bin\Debug\AForge.Controls.dll

    .CA....     19968  2013-03-12 22:09  AForgeCapture\AForgeCapture\bin\Debug\AForge.dll

    .CA....    295424  2013-03-12 22:09  AForgeCapture\AForgeCapture\bin\Debug\AForge.Imaging.dll

    .CA....     76288  2013-03-12 22:09  AForgeCapture\AForgeCapture\bin\Debug\AForge.Math.dll

    .CA....     60928  2013-03-12 22:09  AForgeCapture\AForgeCapture\bin\Debug\AForge.Video.DirectShow.dll

    .CA....     20480  2013-03-12 22:09  AForgeCapture\AForgeCapture\bin\Debug\AForge.Video.dll

    .CA....     61952  2012-02-23 20:34  AForgeCapture\AForgeCapture\bin\Debug\AForge.Video.FFMPEG.dll

    .CA....     18432  2013-03-12 22:09  AForgeCapture\AForgeCapture\bin\Debug\AForge.Video.VFW.dll

    .CA....  13496832  2011-12-11 20:33  AForgeCapture\AForgeCapture\bin\Debug\avcodec-53.dll

    .CA....    349696  2011-12-11 20:33  AForgeCapture\AForgeCapture\bin\Debug\avdevice-53.dll

    .CA....    890880  2011-12-11 20:33  AForgeCapture\AForgeCapture\bin\Debug\avfilter-2.dll

    .CA....   2462208  2011-12-11 20:33  AForgeCapture\AForgeCapture\bin\Debug\avformat-53.dll

    .CA....    137728  2011-12-11 20:33  AForgeCapture\AForgeCapture\bin\Debug\avutil-51.dll

    .CA....    296960  2011-12-11 20:33  AForgeCapture\AForgeCapture\bin\Debug\swscale-2.dll

    .CA....      2507  2013-07-16 10:32  AForgeCapture\AForgeCapture\frmReplay.cs

    .CA....      4467  2013-07-16 10:03  AForgeCapture\AForgeCapture\frmReplay.Designer.cs

    .CA....      6016  2013-07-16 10:03  AForgeCapture\AForgeCapture\frmReplay.resx

    .CA....      1051  2013-07-16 09:40  AForgeCapture\AForgeCapture\frmSnapshot.cs

    .CA....      4083  2013-07-16 09:38  AForgeCapture\AForgeCapture\frmSnapshot.designer.cs

    .CA....      6019  2013-07-16 09:38  AForgeCapture\AForgeCapture\frmSnapshot.resx

    .CA....      6651  2013-07-16 10:19  AForgeCapture\AForgeCapture\MainForm.cs

    .CA....      8481  2013-07-16 09:58  AForgeCapture\AForgeCapture\MainForm.Designer.cs

    .CA....      6210  2013-07-16 09:58  AForgeCapture\AForgeCapture\MainForm.resx

    .CA....      1311  2013-07-16 10:19  AForgeCapture\AForgeCapture\obj\x86\Debug\AForgeCapture.csproj.FileListAbsolute.txt

    .CA....     18432  2013-07-16 10:08  AForgeCapture\AForgeCapture\obj\x86\Debug\AForgeCapture.exe

    .CA....       180  2013-07-16 10:04  AForgeCapture\AForgeCapture\obj\x86\Debug\AForgeCapture.frmReplay.resources

    .CA....       180  2013-07-16 09:57  AForgeCapture\AForgeCapture\obj\x86\Debug\AForgeCapture.frmSnapshot.resources

    .CA....       180  2013-07-16 10:00  AForgeCapture\AForgeCapture\obj\x86\Debug\AForgeCapture.MainForm.resources

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

评论

共有 条评论