ScottPlot/ScottPlot

Rendering: Saved image size is incorrect when `ScaleFactor` is less than `1`

Corbini opened this issue · 0 comments

Issue: When I change the ScaleFactor of the ScottPlot.Plot the GetImageBytes returns a image with a blackout sections

ScottPlot Version: 5.0.34

Code Sample:

ScottPlot.Plot plt = new();
plt.ScaleFactor = 0.5;

// use code to express information related to the the discussion
plt.Add.Signal(ScottPlot.Generate.Sin());
plt.Add.Signal(ScottPlot.Generate.Cos());

plt.SaveBmp("demo.png", 200, 200);

demo