QPixmapFilter Class
The QPixmapFilter class provides the basic functionality for pixmap filter classes. Pixmap filter can be for example colorize or blur. More...
Header: | #include <QPixmapFilter> |
Inherits: | QObject |
Inherited By: | QPixmapBlurFilter, QPixmapColorizeFilter, QPixmapConvolutionFilter, and QPixmapDropShadowFilter |
Public Types
enum | FilterType { ConvolutionFilter, ColorizeFilter, DropShadowFilter, BlurFilter, UserFilter } |
Public Functions
virtual | ~QPixmapFilter() = 0 |
virtual QRectF | boundingRectFor(const QRectF &rect) const |
FilterType | type() const |
Protected Functions
QPixmapFilter(QPixmapFilterPrivate &d, FilterType type, QObject *parent) | |
QPixmapFilter(FilterType type, QObject *parent) |
Detailed Description
\since
4.5 \ingroup
painting
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.
\internal
Member Type Documentation
enum QPixmapFilter::FilterType
\internal
This enum describes the types of filter that can be applied to pixmaps.
Constant | Value | Description |
---|---|---|
QPixmapFilter::ConvolutionFilter | 0 | A filter that is used to calculate the convolution of the image with a kernel. See QPixmapConvolutionFilter for more information. |
QPixmapFilter::ColorizeFilter | 1 | A filter that is used to change the overall color of an image. See QPixmapColorizeFilter for more information. |
QPixmapFilter::DropShadowFilter | 2 | A filter that is used to add a drop shadow to an image. See QPixmapDropShadowFilter for more information. |
QPixmapFilter::BlurFilter | 3 | A filter that is used to blur an image using a simple blur radius. See QPixmapBlurFilter for more information. |
QPixmapFilter::UserFilter | 1024 | The first filter type that can be used for application-specific purposes. |
Member Function Documentation
[protected]
QPixmapFilter::QPixmapFilter(QPixmapFilterPrivate &d, FilterType type, QObject *parent)
\internal
[protected]
QPixmapFilter::QPixmapFilter(FilterType type, QObject *parent)
Constructs a default QPixmapFilter with the given type.
This constructor should be used when subclassing QPixmapFilter to create custom user filters.
\internal
[pure virtual noexcept]
QPixmapFilter::~QPixmapFilter()
Destroys the pixmap filter.
\internal
[virtual]
QRectF QPixmapFilter::boundingRectFor(const QRectF &rect) const
Returns the bounding rectangle that is affected by the pixmap filter if the filter is applied to the specified rect.
\internal
FilterType QPixmapFilter::type() const
Returns the type of the filter. All standard pixmap filter classes are associated with a unique value.
\internal