[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: Alpha channel support
From:       Rik Hemsley <rik () kde ! org>
Date:       2000-10-25 20:33:14
[Download RAW message or body]

On Wed, 25 Oct 2000 13:02:37 -0700
Kurt Granroth <granroth@suse.com> wrote:

> Rik Hemsley wrote:
> > I've hacked KIconLoader, KImageEffect and kicker to allow showing icons
> > with alpha blending. It's not the perfect way to implement this, so
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > I'll not check in the code, but I would like us to do it sometime.
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > The results are IMO impressive:
> > 
> > http://www.geoid.clara.net/kicker_alpha_test.png
> > 
> > BTW, it's damn fast but I suppose it would be configurable.
> 
> So when is this going to be committed?

... I'd rather wait for a while and use a decent backend implementation,
while also trying to see if there's a better way to put the support into
kdelibs. With the method I used, apps have to load icons using 
KIconLoader::loadIconImage() instead of loadIcon() or the shortcuts
(BarIcon, SmallIcon etc). Then they have to call the blending function
themselves, having created a QImage from their background, for the
blending function to use. They also have to take care of updating
themselves when the background changes, and there is no caching of
images, blended or otherwise.

So, as you can see, it's not suitable for putting into kdelibs just yet.

If anyone would like to chat with me on a way to change the icon loading/
displaying design so that we can do this in a more efficient, easy-to-use
way, please get in touch. It's not top of my TODO list so without help it's
not going to get done very soon.

Rik

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic