public void button1_Click(object sender, EventArgs e) { FinalVideo = new VideoCaptureDevice(VidoeCaptureDevices[comboBox1.SelectedIndex].MonikerString); FinalVideo.VideoResolution = FinalVideo.VideoCapabilities[2]; FinalVideo.NewFrame += new NewFrameEventHandler(FinalVideo_NewFrame); FinalVideo.Start(); } void FinalVideo_NewFrame(object sender, NewFrameEventArgs eventArgs) { Bitmap video = (Bitmap)eventArgs.Frame.Clone(); video.Save("C:\\image\\file"+i+".bmp"); pictureBox1.Image = video; i++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)