PNG transparency

Reinhold Füreder reinholdfuereder at gmx.at
Fri Dec 15 08:05:19 PST 2006


Hi,

Similar to the rather old posting
http://groups.google.com/group/comp.soft-sys.wxwindows/browse_thread/thr
ead/d3ddfe7689542245/d7bd70ab9c3501a1 we have upgraded our application
from wx2.6.3 to wx2.8 and are experiencing problems with alpha channel
PNG images. However, our problem lies in the usage of the contrib
project fl where the transparency problem appears in the fl toolbars:
black colour when there should be transparency.

OS: Windows 2000 and 2003 Server

Note:
- standard toolbar sample with our images work with wx 2.6.3 and wx 2.8
- fl demo with our images work with wx 2.6.3, but not wx 2.8
- aui demo with our images work with wx 2.8, (probably) because it is
using the normal toolbar
- there are no (real) changes of the fl toolbar related classes
(dynamictoolbar and newbitmapbutton)
- because fl toolbar is not based on wxToolbar, the sometimes mentioned
remap system option did not help anything (obviously)
- a few of our tool icons worked: they had only 0 and 255 as alpha
values, so no real alpha channel usage

=> converting all icons with gimp: Layer -> Transparency -> Threshold
Alpha... and using default value 127 solves the black transparency
problem, but surely does not look as nice.

What I don't understand is why is this not working anymore with the
alpha channel PNGs?

Thanks,
	Reinhold

P.S.: Of course, we aim at replacing our utilisation of fl with aui soon
;-)





More information about the wx-users mailing list