Here's a small module that converts to/from wx.Bitmap, wx.Image and PIL (Python Imaging Library) image formats. Alpha transparency is properly preserved during all conversions.

ImgConv.py

A simple demo to display image files, some of which have alpha.

PAINTDC_DISPLAY_FILES_and_IMAGES.zip

PILwxImageWxBitmapAlphaConversion (last edited 2010-10-22 17:33:41 by pool-71-175-95-133)

NOTE: To edit pages in this wiki you must be a member of the TrustedEditorsGroup.