Confusion with PNG images and alpha transparancy

Linux specific forum
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Confusion with PNG images and alpha transparancy

Post by Foz »

The help file is confusing me!

In the image overview section, it says:
Linux: transparent PNG images can be used to enable transparency in the gadgets and toolbars images.
In LoadImage, it says:
By default, the image depth will be 24 bits (or 32 bits, if the file supports alphablending informations, like PNG and TIFF).
So far, so good. PNGs with the alpha channel are supported. However, then I come across this little nugget added onto the end of UsePNGDecoder:
The PNG alphachannel information (if any) is ignored for now.
And testing this also seems to be the case of the alpha chennel being ignored... Unless I'm missing something out of course.

Clues anyone?
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

There is a b/w mask used for Toolbars and Gadgets on Linux.
Only fully transparent pixels in the PNG end up transparent on the toolbar.
quidquid Latine dictum sit altum videtur
Foz
Addict
Addict
Posts: 1359
Joined: Tue Nov 13, 2007 12:42 pm
Location: Manchester, UK

Post by Foz »

So it's not me going mad trying to get the alpha channel working then.

Do I take it that full alpha channel support will be added at some point - maybe in the near future? :)
freak
PureBasic Team
PureBasic Team
Posts: 5948
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

I don't know really.
quidquid Latine dictum sit altum videtur
Post Reply