QGIS API Documentation 3.41.0-Master (3440c17df1d)
|
Interface for resampling rasters (V2) (e.g. More...
#include <qgsrasterresampler.h>
Public Member Functions | |
virtual QImage | resampleV2 (const QImage &source, const QSize &size)=0 |
Resamples a source image to the specified size. | |
Public Member Functions inherited from QgsRasterResampler | |
virtual | ~QgsRasterResampler ()=default |
virtual QgsRasterResampler * | clone () const =0 |
Gets a deep copy of this object. | |
virtual Q_DECL_DEPRECATED void | resample (const QImage &srcImage, QImage &dstImage)=0 |
Resamples a source image to a destination image. | |
virtual int | tileBufferPixels () const |
Returns the optional tile buffer size in pixels. | |
virtual QString | type () const =0 |
Gets a descriptive type identifier for this raster resampler. | |
Interface for resampling rasters (V2) (e.g.
to have a smoother appearance), which provides a more efficient interface vs QgsRasterResampler.
Definition at line 96 of file qgsrasterresampler.h.
|
pure virtual |
Resamples a source image to the specified size.
Returns the resampled image, or a null QImage if the resampling fails.
Implemented in QgsBilinearRasterResampler, and QgsCubicRasterResampler.