diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-15 08:41:49 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-08-15 08:41:49 +0000 |
commit | 9a0fbb0a9655eff64fa2c2004dbf8f9d7a96b5b3 (patch) | |
tree | 10db24688050b256b5edf97020df6b92a593f8ad /kdefx/kimageeffect.h | |
parent | e436bd2166d6af00e96dc9a254bc4abac7f1eccf (diff) | |
download | tdelibs-9a0fbb0a9655eff64fa2c2004dbf8f9d7a96b5b3.tar.gz tdelibs-9a0fbb0a9655eff64fa2c2004dbf8f9d7a96b5b3.zip |
Added convertToPremultipliedAlpha() to KImageEffect
Fixed "glowing icons" when 32 bit ARGB visuals are in use
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1247329 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdefx/kimageeffect.h')
-rw-r--r-- | kdefx/kimageeffect.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kdefx/kimageeffect.h b/kdefx/kimageeffect.h index 155df71b1..8d73e5bfb 100644 --- a/kdefx/kimageeffect.h +++ b/kdefx/kimageeffect.h @@ -773,6 +773,16 @@ public: int ambient, bool compensate, bool invert, BumpmapType type, bool tiled); + /** + * Convert an image with standard alpha to premultiplied alpha + * + * @param img the image you want convert + * + * @return The destination image (dst) containing the result. + * @author Timothy Pearson <kb9vqf@pearsoncomputing.net> + */ + static TQImage convertToPremultipliedAlpha(TQImage input); + private: /** |