Flips the image horizontally or vertically. More...
#include <flip.h>
Public Member Functions | |
Flip () | |
~Flip () | |
QuillImage | apply (const QuillImage &image) const |
QRect | newArea (const QSize &fullImageSize, const QRect &area) const |
bool | setOption (const QString &option, const QVariant &value) |
QVariant | option (const QString &option) const |
const QStringList | supportedOptions () const |
virtual const QString | name () const |
Flips the image horizontally or vertically.
Supports options: Horizontal (leave false for vertical flip, set to true for horizontal flip).
Default behavior: Vertical flip.
Flip::Flip | ( | ) |
Flip::~Flip | ( | ) |
QuillImage Flip::apply | ( | const QuillImage & | image | ) | const [virtual] |
Applies the filter to a given preview or fragment.
Reimplemented from QuillImageFilterImplementation.
virtual const QString Flip::name | ( | ) | const [inline, virtual] |
Reimplemented from QuillImageFilterImplementation.
QRect Flip::newArea | ( | const QSize & | fullImageSize, | |
const QRect & | area | |||
) | const [virtual] |
If the filter changes dimensions of the image, this can be used to re-calculate a new position for a specific tile.
Reimplemented from QuillImageFilterImplementation.
QVariant Flip::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 Flip::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 Flip::supportedOptions | ( | ) | const [virtual] |
Reimplemented from QuillImageFilterImplementation.