QGIS API Documentation  3.16.0-Hannover (43b64b13f3)
Public Member Functions | List of all members
QgsRasterResamplerV2 Class Referenceabstract

Interface for resampling rasters (V2) (e.g. More...

#include <qgsrasterresampler.h>

Inheritance diagram for QgsRasterResamplerV2:
Inheritance graph

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 QgsRasterResamplerclone () 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...

Detailed Description

Interface for resampling rasters (V2) (e.g.

to have a smoother appearance), which provides a more efficient interface vs QgsRasterResampler.

QGIS 3.10.1

Definition at line 96 of file qgsrasterresampler.h.

Member Function Documentation

◆ resampleV2()

virtual QImage QgsRasterResamplerV2::resampleV2 ( const QImage &  source,
const QSize &  size 
pure virtual

Resamples a source image to the specified size.

Returns the resampled image, or a null QImage if the resampling fails.

Implemented in QgsCubicRasterResampler, and QgsBilinearRasterResampler.

The documentation for this class was generated from the following file: