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

\since4.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.

ConstantValueDescription
QPixmapFilter::ConvolutionFilter0A filter that is used to calculate the convolution of the image with a kernel. See QPixmapConvolutionFilter for more information.
QPixmapFilter::ColorizeFilter1A filter that is used to change the overall color of an image. See QPixmapColorizeFilter for more information.
QPixmapFilter::DropShadowFilter2A filter that is used to add a drop shadow to an image. See QPixmapDropShadowFilter for more information.
QPixmapFilter::BlurFilter3A filter that is used to blur an image using a simple blur radius. See QPixmapBlurFilter for more information.
QPixmapFilter::UserFilter1024The 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