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

Method saveBmp

qcustomplot/qcustomplot.cpp:14712–14715  ·  view source on GitHub ↗

! Saves a BMP 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 param

Source from the content-addressed store, hash-verified

14710 \see savePdf, savePng, saveJpg, saveRastered
14711*/
14712bool QCustomPlot::saveBmp(const QString &fileName, int width, int height, double scale, int resolution, QCP::ResolutionUnit resolutionUnit)
14713{
14714 return saveRastered(fileName, width, height, scale, "BMP", -1, resolution, resolutionUnit);
14715}
14716
14717/*! \internal
14718

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected