Exemplo n.º 1
0
        private void StartCameras()
        {
            VideoCaptureDevice videoSource = new VideoCaptureDevice(videoDevices[cbCamera.SelectedIndex].MonikerString);

            VVideoSource.VideoSource = videoSource;
            VVideoSource.Start();
        }
Exemplo n.º 2
0
        private void bCapture_Click(object sender, EventArgs e)
        {
            Bitmap BufferPicture;

            BufferPicture      = VVideoSource.GetCurrentVideoFrame();
            pBPicture.Image    = BufferPicture;
            pBPicture.SizeMode = PictureBoxSizeMode.StretchImage;
        }
Exemplo n.º 3
0
 private void StopCamera()
 {
     VVideoSource.SignalToStop();
     VVideoSource.WaitForStop();
 }