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.

Note

This is an abstract class, with methods which must be implemented by a subclass.

The following methods must be implemented: QgsRasterResampler.clone(), QgsRasterResampler.resample(), resampleV2(), QgsRasterResampler.type()

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.

Abstract Methods

resampleV2

Resamples a source image to the specified size.

class qgis.core.QgsRasterResamplerV2[source]

Bases: QgsRasterResampler

abstract 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