The QGraphicsColorizeEffect class provides a colorize effect. 更多...
| 头: | #include <QGraphicsColorizeEffect> |
| Since: | Qt 4.6 |
| 继承: | QGraphicsEffect |
| QGraphicsColorizeEffect (QObject * parent = 0) | |
| ~QGraphicsColorizeEffect () | |
| QColor | color () const |
| qreal | strength () const |
| void | setColor (const QColor & c ) |
| void | setStrength (qreal strength ) |
| void | colorChanged (const QColor & color ) |
| void | strengthChanged (qreal strength ) |
| virtual void | draw (QPainter * painter ) |
The QGraphicsColorizeEffect class provides a colorize effect.
彩色化效果渲染源采用色调为其 color ()。可以修改颜色使用 setColor () 函数。
默认情况下,颜色是浅蓝色 ( QColor (0, 0, 192)).
另请参阅 QGraphicsDropShadowEffect , QGraphicsBlurEffect ,和 QGraphicsOpacityEffect .
此特性保持效果的颜色。
默认情况下,颜色是浅蓝色 ( QColor (0, 0, 192)).
访问函数:
| QColor | color () const |
| void | setColor (const QColor & c ) |
通知程序信号:
| void | colorChanged (const QColor & color ) |
此特性保持效果的强度。
默认情况下,强度为 1.0。强度 0.0 等于没有效果,而强度 1.0 意味着完全彩色化。
访问函数:
| qreal | strength () const |
| void | setStrength (qreal strength ) |
通知程序信号:
| void | strengthChanged (qreal strength ) |
构造新的 QGraphicsColorizeEffect instance. The parent 参数会被传递给 QGraphicsEffect 的构造函数。
销毁效果。
[virtual protected]
void
QGraphicsColorizeEffect::
draw
(
QPainter
*
painter
)
重实现自 QGraphicsEffect::draw ().