Applies Lanczos rescaling to the image. More...
#include <lanczos.h>
Public Member Functions | |
Lanczos () | |
~Lanczos () | |
QuillImage | apply (const QuillImage &image) const |
bool | setOption (const QString &option, const QVariant &value) |
QVariant | option (const QString &option) const |
const QStringList | supportedOptions () const |
virtual const QString | name () const |
Applies Lanczos rescaling to the image.
This version will only work with upscaling. It is intended to be used with small-size images only, as it is not well optimized and does not behave correctly with tiling.
Supports options: SizeAfter (target size), Radius (Lanczos kernel size, valid values are 2 and 3.)
Default behavior: no operation. If only SizeAfter is defined, Radius defaults to 3.
Lanczos::Lanczos | ( | ) |
Lanczos::~Lanczos | ( | ) |
QuillImage Lanczos::apply | ( | const QuillImage & | image | ) | const [virtual] |
Applies the filter to a given preview or fragment.
Reimplemented from QuillImageFilterImplementation.
virtual const QString Lanczos::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.
QVariant Lanczos::option | ( | const QString & | filterOption | ) | const [virtual] |
Returns the value of a filter option. These options are the recommended way to pass information to the filters. This function needs to be reimplemented in a derived class to support options.
Reimplemented from QuillImageFilterImplementation.
bool Lanczos::setOption | ( | const QString & | filterOption, | |
const QVariant & | value | |||
) | [virtual] |
Sets the value of a filter option. These options are the recommended way to pass information to the filters. This function needs to be reimplemented in a derived class to support options.
Reimplemented from QuillImageFilterImplementation.
const QStringList Lanczos::supportedOptions | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.