标签:
public partial class Form1 : Form{ Capture _capture; public Form1() { InitializeComponent(); _capture = new Capture(“url”);//视频文件路径 _capture.ImageGrabbed += _capture_ImageGrabbed;//添加回调函数 _capture.Start(); } void _capture_ImageGrabbed(object sender, EventArgs e) { var frame = _capture.RetrieveBgrFrame();//frame为每一帧图像 pic.Image = frame.Bitmap;//返回每一帧图像(即播放) }}标签:
原文地址:http://www.cnblogs.com/CodeOfTimo/p/4813410.html