42 #ifndef QPIXMAPFILTER_H 43 #define QPIXMAPFILTER_H 56 #include <QtCore/qnamespace.h> 57 #include <QtGui/qpixmap.h> 58 #include <QtGui/qgraphicseffect.h> 60 #ifndef QT_NO_GRAPHICSEFFECT 90 virtual QRectF boundingRectFor(
const QRectF &rect)
const;
110 void setConvolutionKernel(
const qreal *matrix,
int rows,
int columns);
134 void setRadius(
qreal radius);
135 void setBlurHints(QGraphicsBlurEffect::BlurHints hints);
137 qreal radius()
const;
138 QGraphicsBlurEffect::BlurHints blurHints()
const;
157 void setColor(
const QColor& color);
160 void setStrength(
qreal strength);
161 qreal strength()
const;
180 qreal blurRadius()
const;
181 void setBlurRadius(
qreal radius);
184 void setColor(
const QColor &color);
187 void setOffset(
const QPointF &offset);
195 #endif //QT_NO_GRAPHICSEFFECT 196 #endif // QPIXMAPFILTER_H The QPainter class performs low-level painting on widgets and other paint devices.
The QColor class provides colors based on RGB, HSV or CMYK values.
#define QT_END_NAMESPACE
This macro expands to.
void setOffset(qreal dx, qreal dy)
Sets the shadow offset in pixels to be the displacement specified by the horizontal dx and vertical d...
virtual QRectF boundingRectFor(const QRectF &rect) const
Returns the bounding rectangle that is affected by the pixmap filter if the filter is applied to the ...
The QPointF class defines a point in the plane using floating point precision.
The QObject class is the base class of all Qt objects.
FilterType
This enum describes the types of filter that can be applied to pixmaps.
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
const qreal * convolutionKernel() const
Gets the convolution kernel data.
The QPixmapColorizeFilter class provides colorizing filtering for pixmaps.
The QPixmapBlurFilter class provides blur filtering for pixmaps.
int rows() const
Gets the number of rows in the convolution kernel.
int columns() const
Gets the number of columns in the convolution kernel.
The QPixmapFilter class provides the basic functionality for pixmap filter classes.
The QPixmapDropShadowFilter class is a convenience class for drawing pixmaps with drop shadows...
The QPixmap class is an off-screen image representation that can be used as a paint device...
The QPixmapConvolutionFilter class provides convolution filtering for pixmaps.
#define Q_DECLARE_PRIVATE(Class)
virtual void draw(QPainter *painter, const QPointF &p, const QPixmap &src, const QRectF &srcRect=QRectF()) const =0
Uses painter to draw filtered result of src at the point specified by p.