如何在我的鳕鱼中制作快照:
using DirectX.Capture;
using DShowNET;
private void Form1_Shown(object sender, EventArgs e)
{
DirectX.Capture.Capture capture = null;
Filters filters = null;
capture = new DirectX.Capture.Capture(filters.VideoInputDevices[deviceNo], filters.AudioInputDevices[0]);
capture.PreviewWindow = pictureBox1;
}
private void _Pause_Click(object sender, EventArgs e)
{
//??
}
我想通过点击“暂停”按钮将pictureBox 1的视频流转换为图像。 然后将pictureBox 1的pic(*。jpg)保存到数据库。