wxBitmap.SaveFile discards png alpha channel transparency

Hi,

I found some nice icons in PNG format, which have semi transparent
areas, to use in my application. I ran the icons through img2py to use on a toolbar. But now
the transparency was lost or better the icons had a black background.
I tried using the files directly and everything was fine.
After some debugging around in the img2img script, I found the culprit to be the SaveFile
call in img2img.convert.
Attached is a small zip archive which contains a script and a PNG file with alpha channel.

This is on WinXP with 2.5.1.5

Regards
    Adi

img-test.zip (1.73 KB)

···

--
Adi J. Sieker http://www.sieker.info/
Freelance developer http://www.sieker.info/wiki.php?id=Profil