MCPcopy Create free account
hub / github.com/CieNTi/serial_port_plotter / saveJpg

Method saveJpg

qcustomplot/qcustomplot.cpp:14668–14671  ·  view source on GitHub ↗

! Saves a JPEG image file to \a fileName on disc. The output plot will have the dimensions \a width and \a height in pixels, multiplied by \a scale. If either \a width or \a height is zero, the current width and height of the QCustomPlot widget is used instead. Line widths and texts etc. are not scaled up when larger widths/heights are used. If you want that effect, use the \a scale para

Source from the content-addressed store, hash-verified

14666 \see savePdf, savePng, saveBmp, saveRastered
14667*/
14668bool QCustomPlot::saveJpg(const QString &fileName, int width, int height, double scale, int quality, int resolution, QCP::ResolutionUnit resolutionUnit)
14669{
14670 return saveRastered(fileName, width, height, scale, "JPG", quality, resolution, resolutionUnit);
14671}
14672
14673/*!
14674 Saves a BMP image file to \a fileName on disc. The output plot will have the dimensions \a width

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected