rectangle with transparency
Robin Dunn
robin at alldunn.com
Mon May 5 09:42:59 PDT 2008
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.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-users
mailing list