A filter for changing brightness and/or contrast. More...
#include <brightnesscontrast.h>
Public Member Functions | |
BrightnessContrast () | |
virtual | ~BrightnessContrast () |
QuillImage | apply (const QuillImage &tile) const |
bool | setOption (const QString &option, const QVariant &value) |
QVariant | option (const QString &option) const |
const QStringList | supportedOptions () const |
const QString | name () const |
A filter for changing brightness and/or contrast.
This filter uses a naive alogrithm to change global brightness and contrast of an image.
Supports options: Brightness (change in percentage units), Contrast (change in percentage units).
Default behavior: does nothing.
BrightnessContrast::BrightnessContrast | ( | ) |
BrightnessContrast::~BrightnessContrast | ( | ) | [virtual] |
QuillImage BrightnessContrast::apply | ( | const QuillImage & | image | ) | const [virtual] |
Applies the filter to a given preview or fragment.
Reimplemented from QuillImageFilterImplementation.
const QString BrightnessContrast::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.
QVariant BrightnessContrast::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 BrightnessContrast::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 BrightnessContrast::supportedOptions | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.