Hmm... They both render correctly with the mask here on my XP machine. On Linux and OSX too.
···
andrea.gavana@agip.it wrote:
Hello NG,
I am working a little bit with a staticbitmap, and I get a question
for you. I attach a sample at the end of the mail. Basically, I construct a
panel with wx.WHITE background, and I put a staticbitmap on it. The bitmap
I use has some transparent regions. In the sample I attach, I use 2
different construction:1) Construct a wx.StaticBitmap directly from the icon (the Windows
Paste.ico, that I attach also);
2) Construct a wx.ImageList, add the icon to it, get back the Bitmap from
the ImageList and use it in the staticbitmap control.This 2 constructs give 2 different results. In the first, the Icon is
correctly shown (the transparency is where it should be), while in the
second one the transparent regions have become black... which I don't want.
Moreover, using a black mask to mask the transparent regions is not a
choice, because other regions that are black and should not be masked will
be masked anyway.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!