class KIconEffect

Apply effects to icons. More...

Definition#include <kiconeffect.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Methods

Public Static Methods


Detailed Description

Apply effects to icons.

 KIconEffect ()

KIconEffect ()

enum Effects {NoEffect, ToGray, Colorize, ToGamma, DeSaturate, LastEffect }

void  init ()

Reread configuration.

QString  fingerprint (int group, int state)

Returns a fingerprint for the effect selected by [group, state]. This is usefull for caching.

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:

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:

Returns: An image with the effect applied.

QPixmap  apply (QPixmap src, int group, int state)

Apply an effect to a pixmap.

QPixmap  apply (QPixmap src, int effect, float value, const QColor rgb, bool trans)

Apply an effect to a pixmap.

QImage  doublePixels (QImage src)

Returns an image twice as large, consisting of 2x2 pixels.

void  visualActivate (QWidget *, QRect)

[static]

Provide visual feedback to show activation of an icon on a widget.

Not strictly an 'icon effect', but in practice that's what it looks like.

void  toGray (QImage &image, float value)

[static]

void  colorize (QImage &image, const QColor &col, float value)

[static]

void  deSaturate (QImage &image, float value)

[static]

void  toGamma (QImage &image, float value)

[static]

void  semiTransparent (QImage &image)

[static]

void  semiTransparent (QPixmap &pixmap)

[static]

void  overlay (QImage &src, QImage &overlay)

[static]


Generated by: prospector@porky.devel.redhat.com on Fri Nov 3 09:58:39 2000, using kdoc 2.0a42.