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.
- resampleV2(self, source: QImage, size: QSize) QImage ¶
Resamples a
source
image to the specifiedsize
.Returns the resampled image, or a null QImage if the resampling fails.
- Parameters:
source (QImage) –
size (QSize) –
- Return type:
QImage