public void WriteFrame(IBitmapFrame image) { if (image is RepeatFrame) { OriginalWriter.WriteFrame(image); } else { var frame = new MultiDisposeFrame(image, 2); OriginalWriter.WriteFrame(frame); Task.Run(() => _preview.Display(frame)); } }
public void WriteFrame(IBitmapFrame Image) { if (Image is RepeatFrame) { _writer.WriteFrame(Image); } else { var frame = new MultiDisposeFrame(Image, 2); _writer.WriteFrame(frame); _preview.Display(frame); } }