#include </home/clem/local/src/opie/libopie2/opieui/opixmapeffect.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 | |
| static OPixmap & | gradient (OPixmap &pixmap, const QColor &ca, const QColor &cb, GradientType type, int ncols=3) |
| static OPixmap & | unbalancedGradient (OPixmap &pixmap, const QColor &ca, const QColor &cb, GradientType type, int xfactor=100, int yfactor=100, int ncols=3) |
| static OPixmap | createTiled (const OPixmap &pixmap, QSize size) |
| static OPixmap & | intensity (OPixmap &pixmap, float ratio) |
| static OPixmap & | channelIntensity (OPixmap &pixmap, float ratio, RGBComponent channel) |
| static OPixmap & | blend (OPixmap &pixmap, float initial_intensity, const QColor &bgnd, GradientType eff, bool anti_dir=false, int ncols=3) |
| static OPixmap & | hash (OPixmap &pixmap, Lighting lite=NorthLite, unsigned int spacing=0, int ncols=3) |
| static OPixmap | pattern (const OPixmap &pixmap, QSize size, const QColor &ca, const QColor &cb, int ncols=8) |
| static OPixmap & | fade (OPixmap &pixmap, double val, const QColor &color) |
| static OPixmap & | toGray (OPixmap &pixmap, bool fast=false) |
| static OPixmap & | desaturate (OPixmap &pixmap, float desat=0.3) |
| static OPixmap & | contrast (OPixmap &pixmap, int c) |
| static OPixmap & | dither (OPixmap &pixmap, const QColor *palette, int size) |
| static OPixmap | selectedPixmap (const OPixmap &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.
Definition at line 29 of file opixmapeffect.h.
|
|
Definition at line 32 of file opixmapeffect.h. |
|
|
Definition at line 38 of file opixmapeffect.h. |
|
|
Definition at line 36 of file opixmapeffect.h. |
|
||||||||||||||||||||||||||||
|
Blends the provided pixmap into a background of the indicated color.
Definition at line 145 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::blend(), Opie::Ui::OImageEffect::dither(), i, and image. |
|
||||||||||||||||
|
Modifies the intensity of a pixmap's RGB channel component.
Definition at line 126 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::channelIntensity(), and image. |
|
||||||||||||
|
Modifies the contrast of a pixmap.
Definition at line 292 of file opixmapeffect.cpp. References contrast. |
|
||||||||||||
|
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.
Definition at line 245 of file opixmapeffect.cpp. Referenced by pattern(). |
|
||||||||||||
|
Desaturates a pixmap.
Definition at line 283 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::desaturate(). |
|
||||||||||||||||
|
Dithers a pixmap using Floyd-Steinberg dithering for low-color situations.
Definition at line 308 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::dither(). |
|
||||||||||||||||
|
Fades a pixmap to a certain color.
Definition at line 262 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::fade(). |
|
||||||||||||||||||||||||
|
Creates a gradient from color a to color b of the specified type.
Definition at line 29 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::gradient(), HorizontalGradient, image, p, VerticalGradient, Opie::MM::x, and Opie::MM::y. |
|
||||||||||||||||||||
|
Builds a hash on any given pixmap.
Definition at line 184 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::dither(), Opie::Ui::OImageEffect::hash(), i, and image. |
|
||||||||||||
|
Either brightens or dims a pixmap by a specified ratio.
Definition at line 114 of file opixmapeffect.cpp. References image, and Opie::Ui::OImageEffect::intensity(). |
|
||||||||||||||||||||||||
|
Creates a pattern from a pixmap. The given pixmap is "flattened" between color a to color b.
Definition at line 228 of file opixmapeffect.cpp. References createTiled(), and Opie::Ui::OImageEffect::flatten(). |
|
||||||||||||
|
Calculate a 'selected' pixmap, for instance a selected icon on the desktop.
Definition at line 323 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::selectedImage(). |
|
||||||||||||
|
Converts a pixmap to grayscale.
Definition at line 273 of file opixmapeffect.cpp. References Opie::Ui::OImageEffect::toGray(). |
|
||||||||||||||||||||||||||||||||
|
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.
Definition at line 93 of file opixmapeffect.cpp. References image, and Opie::Ui::OImageEffect::unbalancedGradient(). |
1.4.2