[wxpython-users] Re: transparent bitmap on bitmap
Christopher Barker
Chris.Barker at noaa.gov
Mon May 19 11:38:01 PDT 2008
Paul Sijben wrote:
> Now I have one little issue left over ; I want the aggregate bitmap with
> the code below. However I want the aggregate to be transparent, now the
> edge is ragged in the CYAN color I am trying to use to make the thing
> transparent. Is there a way to gain transparency and smooth edges?
You might try using a bitmap with an alpha channel:
bitmap=wx.EmptyBitmap(w,h, depth=32)
...
scratch.SetBackground(wx.TRANSPARENT_BRUSH)
scratch.Clear()
untested...
wx.TRANSPARENT_BRUSH may not work right, you may need:
SetBackground(wx.Brush(wx.Color(0,0,0,0)))
-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