faithui/faith/pixmapeffect.h

Go to the documentation of this file.
00001 /* This file is part of the KDE libraries
00002     Copyright (C) 1998, 1999 Christian Tibirna <ctibirna@total.net>
00003               (C) 1998, 1999 Daniel M. Duley <mosfet@kde.org>
00004               (C) 1998, 1999 Dirk A. Mueller <mueller@kde.org>
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

Generated on Fri Sep 1 00:23:08 2006 for Faith by  doxygen 1.4.7