![]() |
Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QPixmapColorizeFilter class provides colorizing filtering for pixmaps. More...
#include <QPixmapColorizeFilter>
Inherits QPixmapFilter.
This class was introduced in Qt 4.5.
The QPixmapColorizeFilter class provides colorizing filtering for pixmaps.
A colorize filter gives the pixmap a tint of its color(). The filter first grayscales the pixmap and then converts those to colorized values using QPainter::CompositionMode_Screen with the chosen color. The alpha-channel is not changed.
Example:
QPixmapColorizeFilter *myFilter = new QPixmapColorFilter; myFilter->setColor(QColor(128, 0, 0)); myFilter->draw(painter, QPoint(0, 0), originalPixmap);
See also QPainter::CompositionMode.
Constructs an pixmap colorize filter.
Default color value for colorizing is QColor(0, 0, 192).
Gets the color of the colorize filter.
See also setColor().
Sets the color of the colorize filter to the color specified.
See also color().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.5.0-rc1 |