00001
00002
00003
00004
00005
00006
00007
00008 #ifndef KDE__PIXMAPEFFECT_H
00009 #define KDE__PIXMAPEFFECT_H
00010
00011 #include <faith/ui.h>
00012
00013 namespace Faith
00014 {
00015
00016 class Pixmap;
00017 class Color;
00018
00027 class FAITH_UI_EXPORT PixmapEffect
00028 {
00029 public:
00030 enum GradientType { VerticalGradient, HorizontalGradient,
00031 DiagonalGradient, CrossDiagonalGradient,
00032 PyramidGradient, RectangleGradient,
00033 PipeCrossGradient, EllipticGradient };
00034
00047 static Pixmap& gradient(Pixmap& pixmap, const Color &ca, const Color &cb,
00048 GradientType type, int ncols=3);
00049
00065 static Pixmap& unbalancedGradient(Pixmap& pixmap, const Color &ca,
00066 const Color &cb, GradientType type, int xfactor = 100,
00067 int yfactor = 100, int ncols=3);
00068
00077 static Pixmap& toGray(Pixmap& pixmap, bool fast=false);
00078
00079 };
00080
00081 }
00082
00083 #endif