private static IVideoSource MakeLocalCameraVideoSource(VideoSourceDescription description) { VideoCaptureDeviceVideoSource videoSource = new VideoCaptureDeviceVideoSource(description.SourceString); videoSource.DesiredFrameSize = new System.Drawing.Size(description.Resolution.Width, description.Resolution.Height); videoSource.DesiredFrameRate = description.FrameRate; return videoSource; }
// Constructor public Grabber(VideoCaptureDeviceVideoSource parent, bool snapshotMode) { this.parent = parent; this.snapshotMode = snapshotMode; }