Class: QgsNullPaintDevice¶
- class qgis.core.QgsNullPaintDevice¶
Bases:
PyQt5.QtGui.QPaintDevice
Null painter device that can be used for map renderer jobs which use custom painters.
New in version 3.24:
Methods
- param metric:
- rtype:
QPaintEngine
Sets the
dpi
of the device.Sets the
size
of the device in pixels.- metric(self, metric: QPaintDevice.PaintDeviceMetric) int ¶
- Parameters:
metric (QPaintDevice.PaintDeviceMetric) –
- Return type:
int
- paintEngine(self) QPaintEngine ¶
- Return type:
QPaintEngine
- setOutputDpi(self, dpi: int)¶
Sets the
dpi
of the device.- Parameters:
dpi (int) –
- setOutputSize(self, size: QSize)¶
Sets the
size
of the device in pixels.- Parameters:
size (QSize) –