KPixmapEffect Class Reference
This class includes various pixmap-based graphical effects. More...
#include <kpixmapeffect.h>
Public Types | |
enum | GradientType { VerticalGradient, HorizontalGradient, DiagonalGradient, CrossDiagonalGradient, PyramidGradient, RectangleGradient, PipeCrossGradient, EllipticGradient } |
enum | RGBComponent { Red, Green, Blue } |
enum | Lighting { NorthLite, NWLite, WestLite, SWLite, SouthLite, SELite, EastLite, NELite } |
Static Public Member Functions | |
KPixmap & | gradient (KPixmap &pixmap, const QColor &ca, const QColor &cb, GradientType type, int ncols=3) |
KPixmap & | unbalancedGradient (KPixmap &pixmap, const QColor &ca, const QColor &cb, GradientType type, int xfactor=100, int yfactor=100, int ncols=3) |
KPixmap | createTiled (const KPixmap &pixmap, QSize size) |
KPixmap & | intensity (KPixmap &pixmap, float ratio) |
KPixmap & | channelIntensity (KPixmap &pixmap, float ratio, RGBComponent channel) |
KPixmap & | blend (KPixmap &pixmap, float initial_intensity, const QColor &bgnd, GradientType eff, bool anti_dir=false, int ncols=3) |
KPixmap & | hash (KPixmap &pixmap, Lighting lite=NorthLite, unsigned int spacing=0, int ncols=3) |
KPixmap | pattern (const KPixmap &pixmap, QSize size, const QColor &ca, const QColor &cb, int ncols=8) |
KPixmap & | fade (KPixmap &pixmap, double val, const QColor &color) |
KPixmap & | toGray (KPixmap &pixmap, bool fast=false) |
KPixmap & | desaturate (KPixmap &pixmap, float desat=0.3) |
KPixmap & | contrast (KPixmap &pixmap, int c) |
KPixmap & | dither (KPixmap &pixmap, const QColor *palette, int size) |
KPixmap | selectedPixmap (const KPixmap &pixmap, const QColor &col) |
Detailed Description
This class includes various pixmap-based graphical effects.Everything is static, so there is no need to create an instance of this class. You can just call the static methods. They are encapsulated here merely to provide a common namespace.
Definition at line 26 of file kpixmapeffect.h.
Member Function Documentation
|
Creates a gradient from color a to color b of the specified type.
References KPixmap::convertFromImage(), and KImageEffect::gradient(). |
|
Creates an unbalanced gradient. An unbalanced gradient is a gradient where the transition from color a to color b is not linear, but in this case, exponential.
References KPixmap::convertFromImage(), and KImageEffect::unbalancedGradient(). |
|
Creates a pixmap of a given size with the given pixmap. if the given size is bigger than the size of the pixmap, the pixmap is tiled.
Referenced by pattern(). |
|
Either brightens or dims a pixmap by a specified ratio.
References KPixmap::convertFromImage(), and KImageEffect::intensity(). |
|
Modifies the intensity of a pixmap's RGB channel component.
References KImageEffect::channelIntensity(), and KPixmap::convertFromImage(). |
|
Blends the provided pixmap into a background of the indicated color.
References KImageEffect::blend(), KPixmap::convertFromImage(), and KImageEffect::dither(). |
|
Builds a hash on any given pixmap.
References KPixmap::convertFromImage(), KImageEffect::dither(), and KImageEffect::hash(). |
|
Creates a pattern from a pixmap. The given pixmap is "flattened" between color a to color b. Doesn't change the original pixmap.
References KPixmap::convertFromImage(), createTiled(), and KImageEffect::flatten(). |
|
Fades a pixmap to a certain color.
References KPixmap::convertFromImage(), and KImageEffect::fade(). |
|
Converts a pixmap to grayscale.
References KPixmap::convertFromImage(), and KImageEffect::toGray(). |
|
Desaturates a pixmap.
References KPixmap::convertFromImage(), and KImageEffect::desaturate(). |
|
Modifies the contrast of a pixmap.
References KImageEffect::contrast(), and KPixmap::convertFromImage(). |
|
Dithers a pixmap using Floyd-Steinberg dithering for low-color situations.
References KPixmap::convertFromImage(), and KImageEffect::dither(). |
|
Calculate a 'selected' pixmap, for instance a selected icon on the desktop.
References KPixmap::convertFromImage(), and KImageEffect::selectedImage(). |
The documentation for this class was generated from the following files: