• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdefx
 

tdefx

  • tdefx
kpixmapeffect.h
1/* This file is part of the KDE libraries
2 Copyright (C) 1998, 1999 Christian Tibirna <ctibirna@total.net>
3 (C) 1998, 1999 Daniel M. Duley <mosfet@kde.org>
4 (C) 1998, 1999 Dirk Mueller <mueller@kde.org>
5
6*/
7
8// $Id$
9
10#ifndef __KPIXMAP_EFFECT_H
11#define __KPIXMAP_EFFECT_H
12
13#include <tdelibs_export.h>
14
15#include <tqsize.h>
16class KPixmap;
17class TQColor;
18
27class TDEFX_EXPORT KPixmapEffect
28{
29public:
30 enum GradientType { VerticalGradient, HorizontalGradient,
31 DiagonalGradient, CrossDiagonalGradient,
32 PyramidGradient, RectangleGradient,
33 PipeCrossGradient, EllipticGradient };
34 enum RGBComponent { Red, Green, Blue };
35
36 enum Lighting {NorthLite, NWLite, WestLite, SWLite,
37 SouthLite, SELite, EastLite, NELite};
38
51 static KPixmap& gradient(KPixmap& pixmap, const TQColor &ca, const TQColor &cb,
52 GradientType type, int ncols=3);
53
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);
72
84 static KPixmap createTiled(const KPixmap& pixmap, TQSize size);
85
93 static KPixmap& intensity(KPixmap& pixmap, float ratio);
94
103 static KPixmap& channelIntensity(KPixmap& pixmap, float ratio,
104 RGBComponent channel);
105
123 static KPixmap& blend(KPixmap& pixmap, float initial_intensity,
124 const TQColor &bgnd, GradientType eff,
125 bool anti_dir=false, int ncols=3);
126
137 static KPixmap& hash(KPixmap& pixmap, Lighting lite=NorthLite,
138 unsigned int spacing=0, int ncols=3);
139
156 static KPixmap pattern(const KPixmap& pixmap, TQSize size,
157 const TQColor &ca, const TQColor &cb, int ncols=8);
158
167 static KPixmap& fade(KPixmap& pixmap, double val, const TQColor &color);
168
177 static KPixmap& toGray(KPixmap& pixmap, bool fast=false);
178
186 static KPixmap& desaturate(KPixmap& pixmap, float desat = 0.3);
187
195 static KPixmap& contrast(KPixmap& pixmap, int c);
196
206 static KPixmap& dither(KPixmap &pixmap, const TQColor *palette, int size);
207
214 static KPixmap selectedPixmap( const KPixmap &pixmap, const TQColor &col );
215};
216
217
218#endif
KPixmapEffect
This class includes various pixmap-based graphical effects.
Definition: kpixmapeffect.h:28
KPixmap
Off-screen paint device with extended features.
Definition: kpixmap.h:58

tdefx

Skip menu "tdefx"
  • Main Page
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdefx

Skip menu "tdefx"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdefx by doxygen 1.9.4
This website is maintained by Timothy Pearson.