private void TakeSnapshotButton_Click(Object sender, RoutedEventArgs e) { // Take snapshot of webcam video FileName = WebcamCtrl.TakeSnapshot(); WebcamCtrl.StopCapturing(); CamGrid.Visibility = Visibility.Collapsed; TransmitGrid.Visibility = Visibility.Visible; TransmitImage.Source = new ImageSourceConverter().ConvertFromString(FileName) as ImageSource; TransmitImage.Visibility = Visibility.Visible; }
private void StopCaptureButton_Click(Object sender, RoutedEventArgs e) { WebcamCtrl.StopCapturing(); }