KIconThemes
kiconeffect.cpp
180 qCWarning(KICONTHEMES) << "Invalid icon state:" << state << ", should be one of KIconLoader::States";
184 qCWarning(KICONTHEMES) << "Invalid icon group:" << group << ", should be one of KIconLoader::Group";
187 return apply(image, d->effect[group][state], d->value[group][state], d->color[group][state], d->color2[group][state], d->trans[group][state]);
190 QImage KIconEffect::apply(const QImage &image, int effect, float value, const QColor &col, bool trans) const
192 return apply(image, effect, value, col, KColorScheme(QPalette::Active, KColorScheme::View).background().color(), trans);
195 QImage KIconEffect::apply(const QImage &img, int effect, float value, const QColor &col, const QColor &col2, bool trans) const
199 qCWarning(KICONTHEMES) << "Invalid icon effect:" << effect << ", should be one of KIconLoader::Effects";
233 qCWarning(KICONTHEMES) << "Invalid icon state:" << state << ", should be one of KIconLoader::States";
237 qCWarning(KICONTHEMES) << "Invalid icon group:" << group << ", should be one of KIconLoader::Group";
240 return apply(pixmap, d->effect[group][state], d->value[group][state], d->color[group][state], d->color2[group][state], d->trans[group][state]);
243 QPixmap KIconEffect::apply(const QPixmap &pixmap, int effect, float value, const QColor &col, bool trans) const
245 return apply(pixmap, effect, value, col, KColorScheme(QPalette::Active, KColorScheme::View).background().color(), trans);
248 QPixmap KIconEffect::apply(const QPixmap &pixmap, int effect, float value, const QColor &col, const QColor &col2, bool trans) const
253 qCWarning(KICONTHEMES) << "Invalid icon effect:" << effect << ", should be one of KIconLoader::Effects";
382 void KIconEffect::toMonochrome(QImage &img, const QColor &black, const QColor &white, float value)
QString readEntry(const char *key, const char *aDefault=nullptr) const
static void semiTransparent(QImage &image)
Renders an image semi-transparent.
Definition: kiconeffect.cpp:488
QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags)
Format_ARGB32
int height() const const
ByteOrder
int depth() const const
QImage::Format format() const const
int red() const const
static void overlay(QImage &src, QImage &overlay)
Overlays an image with an other image.
Definition: kiconeffect.cpp:624
QRgb color(int i) const const
QList::const_iterator constBegin() const const
void setColorCount(int colorCount)
void setHsv(int h, int s, int v, int a)
T * data()
QImage doublePixels(const QImage &src) const
Returns an image twice as large, consisting of 2x2 pixels.
Definition: kiconeffect.cpp:579
QImage apply(const QImage &src, int group, int state) const
Applies an effect to an image.
Definition: kiconeffect.cpp:177
static void colorize(QImage &image, const QColor &col, float value)
Colorizes an image with a specific color.
Definition: kiconeffect.cpp:340
QString & setNum(short n, int base)
static void toMonochrome(QImage &image, const QColor &black, const QColor &white, float value)
Produces a monochrome icon with a given foreground and background color.
Definition: kiconeffect.cpp:382
static void toGamma(QImage &image, float value)
Changes the gamma value of an image.
Definition: kiconeffect.cpp:472
bool isEmpty() const const
uchar * bits()
QImage convertToFormat(QImage::Format format, Qt::ImageConversionFlags flags) const &const
int green() const const
int bytesPerLine() const const
static void deSaturate(QImage &image, float value)
Desaturates an image.
Definition: kiconeffect.cpp:449
QVector< QRgb > colorTable() const const
QSize size() const const
KSharedConfigPtr config()
QImage toImage() const const
uchar * scanLine(int i)
typedef ConstIterator
QString fingerprint(int group, int state) const
Returns a fingerprint for the effect by encoding the given group and state into a QString.
Definition: kiconeffect.cpp:147
void setColor(int index, QRgb colorValue)
QList::const_iterator constEnd() const const
void setRgb(int r, int g, int b, int a)
int blue() const const
bool hasEffect(int group, int state) const
Tests whether an effect has been configured for the given icon group.
Definition: kiconeffect.cpp:137
int size() const const
Active
void getHsv(int *h, int *s, int *v, int *a) const const
int colorCount() const const
QVector< V > values(const QMultiHash< K, V > &c)
void setColorTable(const QVector< QRgb > colors)
int width() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:58:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Sep 26 2023 03:58:09 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.