From 9a0fbb0a9655eff64fa2c2004dbf8f9d7a96b5b3 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 15 Aug 2011 08:41:49 +0000 Subject: 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 --- kdefx/kimageeffect.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'kdefx/kimageeffect.h') 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 + */ + static TQImage convertToPremultipliedAlpha(TQImage input); + private: /** -- cgit v1.2.3