Class: QgsRasterDrawer

class qgis.core.QgsRasterDrawer

Bases: sip.wrapper

The drawing pipe for raster layers.

Methods

draw Draws raster data.

Signals

Attributes

draw(self, p: QPainter, viewPort: QgsRasterViewPort, qgsMapToPixel: QgsMapToPixel, feedback: QgsRasterBlockFeedback = None)

Draws raster data.

Parameters:
  • p – destination QPainter
  • viewPort – viewport to render
  • qgsMapToPixel – map to pixel converter
  • feedback – optional raster feedback object for cancelation/preview. Added in QGIS 3.0.