13 #ifndef __TDEIconEffect_h_Included__
14 #define __TDEIconEffect_h_Included__
20 #include "tdelibs_export.h"
24 class TDEIconEffectPrivate;
55 enum Effects { NoEffect, ToGray, Colorize, ToGamma, DeSaturate,
73 bool hasEffect(
int group,
int state)
const;
83 TQString fingerprint(
int group,
int state)
const;
93 TQImage apply(TQImage src,
int group,
int state)
const;
105 TQImage apply(TQImage src,
int effect,
float value,
const TQColor rgb,
bool trans)
const;
109 TQImage apply(TQImage src,
int effect,
float value,
const TQColor rgb,
const TQColor rgb2,
bool trans)
const;
118 TQPixmap apply(TQPixmap src,
int group,
int state)
const;
129 TQPixmap apply(TQPixmap src,
int effect,
float value,
const TQColor rgb,
bool trans)
const;
133 TQPixmap apply(TQPixmap src,
int effect,
float value,
const TQColor rgb,
const TQColor rgb2,
bool trans)
const;
140 TQImage doublePixels(TQImage src)
const;
154 static void visualActivate(TQWidget *widget, TQRect rect);
155 static void visualActivate(TQWidget *widget, TQRect rect, TQPixmap *pixmap);
163 static void toGray(TQImage &image,
float value);
172 static void colorize(TQImage &image,
const TQColor &col,
float value);
183 static void toMonochrome(TQImage &image,
const TQColor &black,
const TQColor &white,
float value);
191 static void deSaturate(TQImage &image,
float value);
199 static void toGamma(TQImage &image,
float value);
206 static void semiTransparent(TQImage &image);
213 static void semiTransparent(TQPixmap &pixmap);
221 static void overlay(TQImage &src, TQImage &overlay);
226 TQColor mColor[6][3];
228 TDEIconEffectPrivate *d;
Applies effects to icons.
Effects
This is the enumeration of all possible icon effects.