#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) |
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.
|
|
|
|
|
|
|
|
|
|
||||||||||||||||||||||||||||
|
Blends the provided pixmap into a background of the indicated color.
|
|
||||||||||||||||
|
Modifies the intensity of a pixmap's RGB channel component.
|
|
||||||||||||
|
Modifies the contrast of a pixmap.
|
|
||||||||||||
|
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.
|
|
||||||||||||
|
Desaturates a pixmap.
|
|
||||||||||||||||
|
Dithers a pixmap using Floyd-Steinberg dithering for low-color situations.
|
|
||||||||||||||||
|
Recolors a pixmap. The most dark color will become color a, the most bright one color b, and in between.
|
|
||||||||||||||||||||||||
|
Creates a gradient from color a to color b of the specified type.
|
|
||||||||||||||||||||
|
Builds a hash on any given pixmap.
|
|
||||||||||||
|
Either brightens or dims a pixmap by a specified ratio.
|
|
||||||||||||||||||||||||
|
Creates a pattern from a pixmap. The given pixmap is "flattened" between color a to color b.
|
|
||||||||||||
|
Calculate a 'selected' pixmap, for instance a selected icon on the desktop.
|
|
||||||||||||
|
Converts a pixmap to grayscale.
|
|
||||||||||||||||||||||||||||||||
|
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.
|
1.3.2