Class: QgsRasterResampler¶
Interface for resampling rasters (e.g. to have a smoother appearance)
Class Hierarchy¶
Subclasses¶
Interface for resampling rasters (V2) (e.g. to have a smoother appearance), which provides a more efficient interface vs |
Methods
Gets a deep copy of this object. |
|
Resamples a source image to a destination image. |
|
Returns the optional tile buffer size in pixels. |
|
Gets a descriptive type identifier for this raster resampler. |
- class qgis.core.QgsRasterResampler[source]¶
Bases:
object
- clone(self) QgsRasterResampler | None [source]¶
Gets a deep copy of this object. Needs to be reimplemented by subclasses. Ownership is transferred to the caller.
- Return type:
Optional[QgsRasterResampler]
- resample(self, srcImage: QImage, dstImage: QImage)[source]¶
Resamples a source image to a destination image.
The size of the passed destination image should be respected during the resampling process.
Deprecated since version 3.10.1: Use the more efficient
QgsRasterResamplerV2
interface instead.- Parameters:
srcImage (QImage)
dstImage (QImage)