klyn.gui.windows.charts.KlynPlotWidget.exportImage
method
public exportImage(path as Path, width as Int = 640, height as Int = 480) as Void
Description

Exports the plot without changing its widget geometry.

Parameters
ParameterDescription
pathPNG, BMP or PDF destination; requires an active GUI backend.
widthOutput width in pixels.
heightOutput height in pixels.
Throws
  • IOException if export fails; ValueException for invalid dimensions. Example: chart.exportImage(Path("chart.png"), 640, 480)