Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

QPixmapFilter Class Reference
[
QtGui module]

The QPixmapFilter class provides the basic functionality for pixmap filter classes. Pixmap filter can be for example colorize or blur. More...

 #include <QPixmapFilter>

Inherited by QPixmapColorizeFilter, QPixmapConvolutionFilter, and QPixmapDropShadowFilter.

This class was introduced in Qt 4.5.

Public Types

Public Functions

Protected Functions


Detailed Description

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.


Member Type Documentation

enum QPixmapFilter::FilterType

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::UserFilter1024The first filter type that can be used for application-specific purposes.


Member Function Documentation

QPixmapFilter::QPixmapFilter ( FilterType type )   [protected]

Constructs a default QPixmapFilter with the given type.

This constructor should be used when subclassing QPixmapFilter to create custom user filters.

QPixmapFilter::~QPixmapFilter ()   [pure virtual]

Destroys the pixmap filter.

QRectF QPixmapFilter::boundingRectFor ( const QRectF & rect ) const   [virtual]

Returns the bounding rectangle that is affected by the pixmap filter if the filter is applied to the specified rect.

void QPixmapFilter::draw ( QPainter * painter, const QPointF & p, const QPixmap & src, const QRectF & srcRect = QRectF() ) const   [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.

FilterType QPixmapFilter::type () const

Returns the type of the filter. All standard pixmap filter classes are associated with a unique value.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt 4.5.0-rc1