public void Render(bool skipIfCurrentlyRendering = false, bool lowQuality = false, bool recalculateLayout = false, bool processEvents = false) { if (!isDesignerMode) { if (recalculateLayout) { plt.TightenLayout(); } if (equalAxes) { plt.AxisEqual(); } if (!(skipIfCurrentlyRendering && currentlyRendering)) { currentlyRendering = true; imagePlot.Source = BmpImageFromBmp(plt.GetBitmap(true, lowQuality || lowQualityAlways)); if (isPanningOrZooming || isMovingDraggable || processEvents) { DoEvents(); } currentlyRendering = false; Rendered?.Invoke(null, null); } } }
public void Render(bool skipIfCurrentlyRendering = false, bool lowQuality = false) { if (!isDesignerMode) { if (equalAxes) { plt.AxisEqual(); } if (!(skipIfCurrentlyRendering && currentlyRendering)) { currentlyRendering = true; imagePlot.Source = BmpImageFromBmp(plt.GetBitmap(true, lowQuality)); currentlyRendering = false; Rendered?.Invoke(null, null); } } }
public void Render(bool skipIfCurrentlyRendering = false, bool lowQuality = false, bool recalculateLayout = false, bool processEvents = false) { if (isDesignerMode || plt is null || imagePlot.Width < 1 || imagePlot.Height < 1) { return; } if (equalAxes) { plt.AxisEqual(); } if (!(skipIfCurrentlyRendering && currentlyRendering)) { currentlyRendering = true; imagePlot.Source = BmpImageFromBmp(plt.Render(lowQuality || lowQualityAlways)); if (isPanningOrZooming || isMovingDraggable || processEvents) { DoEvents(); } currentlyRendering = false; Rendered?.Invoke(null, null); } }