QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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
[legend]

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

Detailed Description

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

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

Since
QGIS 3.10.1

Definition at line 94 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 QgsBilinearRasterResampler, and QgsCubicRasterResampler.


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