Class: QgsRasterResamplerV2

class qgis.core.QgsRasterResamplerV2

Bases: QgsRasterResampler

Interface for resampling rasters (V2) (e.g. to have a smoother appearance), which provides a more efficient interface vs QgsRasterResampler.

New in version 3.10.1:

Methods

resampleV2

Resamples a source image to the specified size.

resampleV2(self, source: QImage, size: QSize) QImage

Resamples a source image to the specified size.

Returns the resampled image, or a null QImage if the resampling fails.

Parameters
  • source (QImage) –

  • size (QSize) –

Return type

QImage