QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Scoped object for temporary scaling of a QgsRenderContext for millimeter based rendering. More...
#include <qgsrendercontext.h>
Public Member Functions | |
QgsScopedRenderContextScaleToMm (QgsRenderContext &context) | |
Constructor for QgsScopedRenderContextScaleToMm. More... | |
~QgsScopedRenderContextScaleToMm () | |
Returns the destination painter back to pixel based units. More... | |
Scoped object for temporary scaling of a QgsRenderContext for millimeter based rendering.
Temporarily scales the destination QPainter for a QgsRenderContext to use millimeter based units for the lifetime of the object, before returning it to pixel based units on destruction.
Definition at line 1292 of file qgsrendercontext.h.
|
inline |
Constructor for QgsScopedRenderContextScaleToMm.
Rescales the destination painter (see QgsRenderContext::painter() ) to use millimeter based units.
Definition at line 1303 of file qgsrendercontext.h.
|
inline |
Returns the destination painter back to pixel based units.
Definition at line 1313 of file qgsrendercontext.h.