示例#1
0
 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;
 }
示例#3
0
 // Constructor
 public Grabber(VideoCaptureDeviceVideoSource parent, bool snapshotMode)
 {
     this.parent       = parent;
     this.snapshotMode = snapshotMode;
 }