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); }
// Constructor public Grabber(CaptureDevice parent) { this.parent = parent; }