I try to export an Oxyplot
PlotModel
to .png
I tried like so:
Stream stream = File.Create(path);
var pngExporter = new PngExporter { Width = 600, Height = 400, Background = OxyColors.White };
PngExporter.Export(this.PlotModel, stream, 800, 600);
The output file is a .File type.