Alpha Channel not supported by Imagelist?

Hi!

I have a Problem with .png files with an Alpha Channel in an wx.Imagelist...

Here is a small test script that shows the Problem:
http://pastebin.com/934049
Here is the test.png I used (please rename it to test.png):
http://img207.imageshack.us/img207/8416/testan4.png

I added the Image twice to a Menu. One time directly, and one time with imagelist.GetBitmap().
But it only works if I use wx.MenuItem.SetBitmap()...

Have you an idea? Did I make a mistake or is this a bug?

Thanks for your Help,
Peter

···

=
Hair Transplant- Free Info Center
Instant Free Access. Everything you ever wanted to know about Hair Transplant - Articles, helpful Hair Transplant links, latest news & Other Hair Transplant resources.
http://a8-asy.a8ww.net/a8-ads/adftrclick?redirectid=c74e2ce13191a2fe4989be37b123eb5f

--
Powered By Outblaze

Peter Meier wrote:

Hi!

I have a Problem with .png files with an Alpha Channel in an wx.Imagelist...

Here is a small test script that shows the Problem:
http://pastebin.com/934049
Here is the test.png I used (please rename it to test.png):
ImageShack - Best place for all of your image hosting and image sharing needs

I added the Image twice to a Menu. One time directly, and one time with imagelist.GetBitmap().
But it only works if I use wx.MenuItem.SetBitmap()...

Have you an idea? Did I make a mistake or is this a bug?

If I remember correctly the native image list on Windows only preserves masks, not alpha. It may still be a bug though if I'm not remembering correctly. Please enter a bug report about it, with a category of "wxMSW Specific".

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!