Simple color balance filter. More...
#include <levels.h>
Public Member Functions | |
Levels () | |
~Levels () | |
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 |
Simple color balance filter.
Stretches the red, green and blue channels separately from each other. For each color, the interval ([color]..[color]Max) is stretched to cover the full possible range for this color in RGB (0..255).
This filter is usually created by Auto levels.
Supports options: Red, Green, Blue (minimum values as RGB values), RedMax, GreenMax, BlueMax (maximum values as RGB values).
Default behavior: Does nothing.
Levels::Levels | ( | ) |
Levels::~Levels | ( | ) |
QuillImage Levels::apply | ( | const QuillImage & | image | ) | const [virtual] |
Applies the filter to a given preview or fragment.
Reimplemented from QuillImageFilterImplementation.
virtual const QString Levels::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.
QVariant Levels::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 Levels::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 Levels::supportedOptions | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.