![]() |
Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |
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.
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.
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::UserFilter | 1024 | The first filter type that can be used for application-specific purposes. |
Constructs a default QPixmapFilter with the given type.
This constructor should be used when subclassing QPixmapFilter to create custom user filters.
Destroys the pixmap filter.
Returns the bounding rectangle that is affected by the pixmap filter if the filter is applied to the specified rect.
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.
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 |