示例#1
0
        public override void Dispose()
        {
            base.Dispose();

            _webcamModel?.ReleaseCapture();
            _webcamModel   = null;
            _webcamCapture = null;
        }
示例#2
0
        public IBitmapImage Capture(bool IncludeCursor)
        {
            var webcamCapture = _webcamModel.InitCapture();

            try
            {
                return(webcamCapture.Value?.Capture(GraphicsBitmapLoader.Instance));
            }
            finally
            {
                _webcamModel.ReleaseCapture();
            }
        }
示例#3
0
 public void Dispose()
 {
     _webcamModel?.ReleaseCapture();
     _webcamModel   = null;
     _webcamCapture = null;
 }