rectangle with transparency

Robin Dunn robin at alldunn.com
Mon May 5 11:26:15 PDT 2008


Armel wrote:
> "Robin Dunn" <robin at alldunn.com> a écrit dans le message de news: 
> mailman.18.1210005791.27688.wx-users at lists.wxwidgets.org...
>> Vadim Zeitlin wrote:
>>> On Mon, 5 May 2008 08:11:03 +0200 Armel <armelasselin at hotmail.com> wrote:
>>>
>>> A> > wxGraphicsContext should handle this (although I didn't try it 
>>> myself).
>>> A> could you be more specific ? I found nothing related to alpha in trunk 
>>> in A> wx/graphics.h (apart from a #if 0 "Set/GetAlpha" functions pair).
>>>
>>>  As I said, I didn't test it but normally you should just create a
>>> wxGraphicsBrush using a colour with alpha component and painting with it
>>> should work as expected.
>> You can also use wxGCDC (wxDC API using wxGraphicsContext underneath) and 
>> set the alpha component in the wxColor objects you pass to wxPen or 
>> wxBrush.
> do I need the very latest 2.9.x or 2.8.7 would be enough?

It will work in the 2.8.7 release.

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



More information about the wx-users mailing list