10 #ifndef __KPIXMAP_EFFECT_H
11 #define __KPIXMAP_EFFECT_H
13 #include <tdelibs_export.h>
30 enum GradientType { VerticalGradient, HorizontalGradient,
31 DiagonalGradient, CrossDiagonalGradient,
32 PyramidGradient, RectangleGradient,
33 PipeCrossGradient, EllipticGradient };
34 enum RGBComponent { Red, Green, Blue };
36 enum Lighting {NorthLite, NWLite, WestLite, SWLite,
37 SouthLite, SELite, EastLite, NELite};
51 static KPixmap& gradient(
KPixmap& pixmap,
const TQColor &ca,
const TQColor &cb,
52 GradientType type,
int ncols=3);
69 static KPixmap& unbalancedGradient(
KPixmap& pixmap,
const TQColor &ca,
70 const TQColor &cb, GradientType type,
int xfactor = 100,
71 int yfactor = 100,
int ncols=3);
104 RGBComponent channel);
124 const TQColor &bgnd, GradientType eff,
125 bool anti_dir=
false,
int ncols=3);
138 unsigned int spacing=0,
int ncols=3);
157 const TQColor &ca,
const TQColor &cb,
int ncols=8);
167 static KPixmap& fade(
KPixmap& pixmap,
double val,
const TQColor &color);
206 static KPixmap& dither(
KPixmap &pixmap,
const TQColor *palette,
int size);
214 static KPixmap selectedPixmap(
const KPixmap &pixmap,
const TQColor &col );
This class includes various pixmap-based graphical effects.
Off-screen paint device with extended features.