public override void Dispose() { base.Dispose(); _webcamModel?.ReleaseCapture(); _webcamModel = null; _webcamCapture = null; }
public IBitmapImage Capture(bool IncludeCursor) { var webcamCapture = _webcamModel.InitCapture(); try { return(webcamCapture.Value?.Capture(GraphicsBitmapLoader.Instance)); } finally { _webcamModel.ReleaseCapture(); } }
public void Dispose() { _webcamModel?.ReleaseCapture(); _webcamModel = null; _webcamCapture = null; }