Ejemplo n.º 1
0
        public void StartPreviewUpdate()
        {
            if (_source == null)
            {
                return;
            }

            Task.Run(() =>
            {
                var preview = new Bitmap(_source.GetFrame(0, _borderSize));

                var op = Dispatcher.BeginInvoke((Action)(() =>
                {
                    Preview = preview.ToBitmapImage();
                    Changed(nameof(Preview));
                }));
            });
        }