public CaptureWebcam(Filter videoDevice) { if (videoDevice == null) throw new ArgumentException("The videoDevice parameter must be set to a valid Filter.\n"); this.VideoDevice = videoDevice; CreateGraph(); }