QtBase
v6.3.1
|
The QPixmapFilter class provides the basic functionality for pixmap filter classes. Pixmap filter can be for example colorize or blur. More...
#include <qpixmapfilter_p.h>
Public Types | |
enum | FilterType { ConvolutionFilter , ColorizeFilter , DropShadowFilter , BlurFilter , UserFilter = 1024 } |
Protected Member Functions | |
QPixmapFilter (QPixmapFilterPrivate &d, FilterType type, QObject *parent) | |
QPixmapFilter (FilterType type, QObject *parent) | |
Protected Member Functions inherited from QObject | |
QObject * | sender () const |
int | senderSignalIndex () const |
int | receivers (const char *signal) const |
bool | isSignalConnected (const QMetaMethod &signal) const |
virtual void | timerEvent (QTimerEvent *event) |
virtual void | childEvent (QChildEvent *event) |
virtual void | customEvent (QEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
QObject (QObjectPrivate &dd, QObject *parent=nullptr) | |
The QPixmapFilter class provides the basic functionality for pixmap filter classes. Pixmap filter can be for example colorize or blur.
QPixmapFilter is the base class for every pixmap filter. QPixmapFilter is an abstract class and cannot itself be instantiated. It provides a standard interface for filter processing.
Definition at line 68 of file qpixmapfilter_p.h.
Enumerator | |
---|---|
ConvolutionFilter | |
ColorizeFilter | |
DropShadowFilter | |
BlurFilter | |
UserFilter |
Definition at line 75 of file qpixmapfilter_p.h.
|
pure virtual |
Destroys the pixmap filter.
Definition at line 139 of file qpixmapfilter.cpp.
|
protected |
|
protected |
Constructs a default QPixmapFilter with the given type.
This constructor should be used when subclassing QPixmapFilter to create custom user filters.
Definition at line 116 of file qpixmapfilter.cpp.
Returns the bounding rectangle that is affected by the pixmap filter if the filter is applied to the specified rect.
Reimplemented in QPixmapDropShadowFilter, QPixmapBlurFilter, and QPixmapConvolutionFilter.
Definition at line 161 of file qpixmapfilter.cpp.
|
pure virtual |
Uses painter to draw filtered result of src at the point specified by p. If srcRect is specified the it will be used as a source rectangle to only draw a part of the source.
draw() will affect the area which boundingRectFor() returns.
Implemented in QPixmapColorizeFilter, QPixmapBlurFilter, QPixmapConvolutionFilter, CustomFilter, and QPixmapDropShadowFilter.
QPixmapFilter::FilterType QPixmapFilter::type | ( | ) | const |
Returns the type of the filter. All standard pixmap filter classes are associated with a unique value.
Definition at line 149 of file qpixmapfilter.cpp.