public void StopRecording() { if (m_webCam != null) { m_webCam.Stop(); } }
private void Keyboard_KeyUp(object sender, KeyEventArgs e) { if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.P) { if (ME_test.Visibility != Visibility.Visible) { ME_test.Visibility = Visibility.Visible; webcam.Stop(); ME_test.Play(); } else { ME_test.Stop(); ME_test.Visibility = Visibility.Collapsed; webcam.Start(0); } } }
public void Stop() { //Decouple this using events and observer pattern webcam.Stop(); MainWindowView view = MainWindowView.GetInstrance(); view.CameraStartStopButtonText = "Start"; WebCamOpen = false; }
void webcam1_ImageCaptured(object source, WebcamEventArgs e) { _FrameImage.Image = e.WebCamImage; if (bCapture == true) { imgCapture.Image = imgVideo.Image; bCapture = false; SaveImageCapture(imgCapture.Image); webcam1.Stop(); //Azure Form1.UploadFileToAzure(); } }
public void Stop() { webcam.Stop(); }
private void bntStop_Click(object sender, RoutedEventArgs e) { webcam.Stop(); imgVideo.Source = null; }
private void camStop(object obj) { webCam.Stop(); }
public void Stop() => camera.Stop();
private void Keyboard_KeyUp(object sender, KeyEventArgs e)//V { if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D1) { if (TextBox1.Visibility == Visibility.Visible) { TextBox1.Visibility = Visibility.Collapsed; } else { TextBox1.Visibility = Visibility.Visible; } } if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D2) { if (ctext.Visibility == Visibility.Visible) { ctext.Visibility = Visibility.Collapsed; } else { ctext.Visibility = Visibility.Visible; } } if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.R)//C { webcam.Stop(); webcam.Start(0); } if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.P)//V { if (ME_Test.Visibility != Visibility.Visible) { ME_Test.Visibility = Visibility.Visible; webcam.Stop(); ME_Test.Play(); } else { ME_Test.Stop(); ME_Test.Visibility = Visibility.Collapsed; webcam.Start(0); } } if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.F3)//V { Image_IsSound.Visibility = Visibility.Visible; if (NoSoundEffects == 0) { NoSoundEffects = 1; Image_IsSound.Source = new BitmapImage(new Uri("Images/NoSound.png", UriKind.Relative)); timer3.Start(); } else { NoSoundEffects = 0; Image_IsSound.Source = new BitmapImage(new Uri("Images/SoundIcon.png", UriKind.Relative)); timer3.Start(); } } if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D3)//V { if (Label_ByteData.Visibility == Visibility.Visible) { Label_ByteData.Visibility = Visibility.Collapsed; } else { Label_ByteData.Visibility = Visibility.Visible; } } if (e.KeyboardDevice.Modifiers == ModifierKeys.Shift && e.Key == System.Windows.Input.Key.D4)//V { if (Label_SendingBytes.Visibility == Visibility.Visible) { Label_SendingBytes.Visibility = Visibility.Collapsed; } else { Label_SendingBytes.Visibility = Visibility.Visible; } } if (e.Key == System.Windows.Input.Key.T) //V { vmodel.FirstDepth = Model.vSM.depth; //+погрешность } }
public void Tat() { mywebcam.Stop(); }
private void Stop() { m_webCamCapture.Stop(); }
public void Stop() { webcam.Stop(); camara = false; }
/// <summary> /// остановка камеры /// </summary> public void Stop() { camera.Stop(); }