示例#1
0
        public WebCam(string moniker, System.Windows.Forms.Form frm)
        {
            _filter = GetFilter(moniker);

            _parent = frm;

            cd             = new CaptureDevice();
            cd.VideoSource = _filter.MonikerString;// moniker;
            cd.NewFrame   += new CameraEventHandler(cd_NewFrame);
            cd.VideoInputSizeDetermined += new VideoInputSizeDetermined(OnCaptureDeviceVideoInputSizeDetermined);
        }
示例#2
0
 // Constructor
 public Grabber(CaptureDevice parent)
 {
     this.parent = parent;
 }