diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-14 10:24:33 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-14 13:10:13 (GMT) |
commit | 97594601ca84ae11f30bb35e6cbc7e3f70e0624d (patch) | |
tree | 88a755b717059517cd8d5e6d1fa7499ed3c221de /src/gui/image/qpixmapfilter_p.h | |
parent | f272d891a1fb622ced7a92d426099996f7890945 (diff) | |
download | Qt-97594601ca84ae11f30bb35e6cbc7e3f70e0624d.zip Qt-97594601ca84ae11f30bb35e6cbc7e3f70e0624d.tar.gz Qt-97594601ca84ae11f30bb35e6cbc7e3f70e0624d.tar.bz2 |
Add strength factor to the colorize filter.
To allow fading between the original and the colorized version of the
pixmaps, a new strength factor is introduced, 0.0 means the filter
has no effect at all, 1.0 means full colorization.
Still missing is the non-raster implementation.
Autotest: included
Reviewed-by: Bjørn Erik Nilsen
Diffstat (limited to 'src/gui/image/qpixmapfilter_p.h')
-rw-r--r-- | src/gui/image/qpixmapfilter_p.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/image/qpixmapfilter_p.h b/src/gui/image/qpixmapfilter_p.h index 4cbf7a3..2565110 100644 --- a/src/gui/image/qpixmapfilter_p.h +++ b/src/gui/image/qpixmapfilter_p.h @@ -155,6 +155,9 @@ public: void setColor(const QColor& color); QColor color() const; + void setStrength(qreal strength); + qreal strength() const; + void draw(QPainter *painter, const QPointF &dest, const QPixmap &src, const QRectF &srcRect = QRectF()) const; }; |