class KIconEffect
|
Apply effects to icons. More... |
|
|
Public Types
- enum Effects {NoEffect, ToGray, Colorize, ToGamma, DeSaturate, LastEffect }
Public Methods
- KIconEffect ()
- ~ KIconEffect ()
- void init ()
- QImage apply (QImage src, int group, int state)
- QImage apply (QImage src, int effect, float value, const QColor rgb, bool trans)
- QPixmap apply (QPixmap src, int group, int state)
- QPixmap apply (QPixmap src, int effect, float value, const QColor rgb, bool trans)
- QImage doublePixels (QImage src)
Detailed Description
Apply effects to icons.
Reread configuration.
QImage apply (QImage src, int group, int state)
|
Apply an effect to an image. The effect to apply depends on the
group and state parameters, and is configured by the user.
Parameters:
src | The image.
|
group | The group for the icon.
|
state | The icon's state.
|
Returns: An image with the effect applied.
QImage apply (QImage src, int effect, float value, const QColor rgb, bool trans)
|
Apply an effect to an image.
Parameters:
src | The image.
|
effect | The effect to apply.
|
value | Strength of the effect. 0 <= value <= 1.
|
trans | Add Transparency if trans = true.
|
Returns: An image with the effect applied.
Apply an effect to a pixmap.
Apply an effect to a pixmap.
QImage doublePixels (QImage src)
|
Returns an image twice as large, consisting of 2x2 pixels.
Generated by: root@porky.devel.redhat.com on Wed May 10 08:56:36 2000, using kdoc 2.0a35. |