16#include <kiconthemes_export.h>
24class KIconEffectPrivate;
111 QImage
apply(
const QImage &src,
int group,
int state)
const;
122 QImage
apply(
const QImage &src,
int effect,
float value,
const QColor &rgb,
bool trans)
const;
123 QImage apply(
const QImage &src,
int effect,
float value,
const QColor &rgb,
const QColor &rgb2,
bool trans)
const;
132 QPixmap
apply(
const QPixmap &src,
int group,
int state)
const;
143 QPixmap
apply(
const QPixmap &src,
int effect,
float value,
const QColor &rgb,
bool trans)
const;
144 QPixmap apply(
const QPixmap &src,
int effect,
float value,
const QColor &rgb,
const QColor &rgb2,
bool trans)
const;
159 static void toGray(QImage &image,
float value);
168 static void colorize(QImage &image,
const QColor &col,
float value);
178 static void toMonochrome(QImage &image,
const QColor &black,
const QColor &white,
float value);
194 static void toGamma(QImage &image,
float value);
216 static void overlay(QImage &src, QImage &overlay);
219 std::unique_ptr<KIconEffectPrivate>
const d;
Applies effects to icons.
Definition kiconeffect.h:40
QString fingerprint(int group, int state) const
Returns a fingerprint for the effect by encoding the given group and state into a QString.
static void toGray(QImage &image, float value)
Tints an image gray.
static void toMonochrome(QImage &image, const QColor &black, const QColor &white, float value)
Produces a monochrome icon with a given foreground and background color.
static void semiTransparent(QPixmap &pixmap)
Renders a pixmap semi-transparent.
QImage doublePixels(const QImage &src) const
Returns an image twice as large, consisting of 2x2 pixels.
static void toGamma(QImage &image, float value)
Changes the gamma value of an image.
static void semiTransparent(QImage &image)
Renders an image semi-transparent.
static void deSaturate(QImage &image, float value)
Desaturates an image.
Effects
This is the enumeration of all possible icon effects.
Definition kiconeffect.h:67
void init()
Rereads configuration.
QImage apply(const QImage &src, int effect, float value, const QColor &rgb, bool trans) const
Applies an effect to an image.
QPixmap apply(const QPixmap &src, int effect, float value, const QColor &rgb, bool trans) const
Applies an effect to a pixmap.
static void colorize(QImage &image, const QColor &col, float value)
Colorizes an image with a specific color.
QPixmap apply(const QPixmap &src, int group, int state) const
Applies an effect to a pixmap.
KIconEffect()
Create a new KIconEffect.
bool hasEffect(int group, int state) const
Tests whether an effect has been configured for the given icon group.
QImage apply(const QImage &src, int group, int state) const
Applies an effect to an image.
static void overlay(QImage &src, QImage &overlay)
Overlays an image with an other image.