I've got a problem with my cam (Logitech c920 Pro HD). I want to take a snapshot by the still pin of this camera. I try to use SimulateTrigger() method, but when method is call my camera light flash and no event from new frame snapshot are fired.
- Code: Select all
videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice );
capture videoSource = new VideoCaptureDevice(videoDevices[3].MonikerString );
capture.VideoResolution = capture.VideoCapabilities[5];
capture.SnapshotResolution = capture.SnapshotCapabilities[10]; // there are 19 snapshots capabilities in list
capture.ProvideSnapshots = true;
capture.NewFrame += new NewFrameEventHandler( video_NewFrame );
capture.SnapshotFrame += Capture_SnapshotFrame;
capture.Start( );
private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
{
capture.SimulateTrigger();
}