[wxPython-users] Re: Trouble with drawing, I need some ideas :)
Christopher Barker
Chris.Barker at noaa.gov
Mon Oct 15 13:26:05 PDT 2007
Robin Dunn wrote:
> It creates a new bitmap with all pixels set to black and with a
> fully transparent alpha:
>
> bytes = array.array('B', [0] * width*height*4)
> bmp = wx.BitmapFromBufferRGBA(width, height, bytes)
It looks handy. Maybe it's time for a new wx.Bitmap constructor:
wx.TransparentBitmap(width, height) # (or some other name)
By the way, what is the performance like drawing (blitting) transparent
bitmaps with DC (or GC)? It used to be very, very, slow to Draw a masked
Bitmap to a DC.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the wxpython-users
mailing list