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


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


Member Function Documentation

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.

QPixmap QPixmapFilter::process ( const QPixmap & src, const QRectF & srcRect = QRectF() ) const

Returns a pixmap after applying the filter to src in a rectangle specified by srcRect.

FilterType QPixmapFilter::type () const

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


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