Class: QgsRasterResamplerV2

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

Added in version 3.10.1.

Class Hierarchy

Inheritance diagram of qgis.core.QgsRasterResamplerV2

Base classes

QgsRasterResampler

Interface for resampling rasters (e.g. to have a smoother appearance)

Subclasses

QgsBilinearRasterResampler

Bilinear Raster Resampler

QgsCubicRasterResampler

Cubic Raster Resampler.

Methods

resampleV2

Resamples a source image to the specified size.

class qgis.core.QgsRasterResamplerV2[source]

Bases: QgsRasterResampler

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

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