QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
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. More... | |
Public Member Functions inherited from QgsRasterResampler | |
virtual | ~QgsRasterResampler ()=default |
virtual QgsRasterResampler * | clone () const =0 |
Gets a deep copy of this object. More... | |
virtual Q_DECL_DEPRECATED void | resample (const QImage &srcImage, QImage &dstImage)=0 |
Resamples a source image to a destination image. More... | |
virtual int | tileBufferPixels () const |
Returns the optional tile buffer size in pixels. More... | |
virtual QString | type () const =0 |
Gets a descriptive type identifier for this raster resampler. More... | |
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.