On OSX 10.5.6, when I attempt to create a TaskBar Icon from a PNG using
the sample code shown in (I think bigdemo.rb), with some PNGs, (the ones
that I create) the icon shows up with the transparent background shown
I’ve tried different variations of loading the image, using init_alph,
convert_alpha_to_mask, etc., all with the same results.
I’ve also tried creating the image with several different programs,
Seashore, GIMP, Acorn, again all with the same results.
The only way I’ve been able to successfully get an icon with a
transparent background is to use ICOFX on Windows to convert my PNG to a
windows .ico, but the results seem sub-optimal to me.
All of the PNGs I’ve created show that the background is transparent in
the creating program, in Preview, as well as Camino and Firefox, so I
don’t think it is a problem with the way I’m creating the image.
I’m wondering if it is a problem with the way I’m loading the image, or
if this is a bug in Wx, and in any case if there is something I can do
to get around this problem.
The method below does work with some images, just not the ones that I
create with other than ICOFX.
I’m a newbie as far as image manipulation is concerned, so I would
appreciate any level of help.