/***************************************************************************
                         qgsbilinearrasterresampler.h
                         ----------------------------
    begin                : December 2011
    copyright            : (C) 2011 by Marco Hugentobler
    email                : marco at sourcepole dot ch
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef QGSBILINEARRASTERRESAMPLER_H
#define QGSBILINEARRASTERRESAMPLER_H

#include "qgis.h"
#include "qgis_core.h"
#include "qgis_sip.h"
#include "qgsrasterresampler.h"

#include <QColor>

/**
 * \ingroup core
 * \brief Bilinear raster resampler.
 */
class CORE_EXPORT QgsBilinearRasterResampler : public QgsRasterResamplerV2
{
  public:
    QgsBilinearRasterResampler() = default;

    /**
     * \deprecated QGIS 3.12. Use resampleV2() instead.
     */
    Q_DECL_DEPRECATED void resample( const QImage &srcImage, QImage &dstImage ) override SIP_DEPRECATED;

    QImage resampleV2( const QImage &source, const QSize &size ) override;
    QString type() const override;
    QgsBilinearRasterResampler *clone() const override SIP_FACTORY;
    int tileBufferPixels() const override;
};

#endif // QGSBILINEARRASTERRESAMPLER_H
