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