Alphacolor in wxPen definition

Robin Dunn robin at alldunn.com
Mon Sep 4 10:45:45 PDT 2006


Tomasz Sienkiewicz wrote:
> Hi,
> 
> i would like to draw semi transparent lines, filled rectangles over existing image.
> in c# i construct pen with alphacolor (color with defined alpha channel)
> 
> Pen transPen = new Pen(Color.FromArgb(23,100, 140, 140), 10);
> 
> and do the painting.
> 
> But i've noticed that wxColor has no FromArgb or similar method.
> Is it possible to do transparent painting (this way) using wxWidgets?
> If not, how should i do this?

Alpha drawing support is in the process of being added to the wx 2.7 
branch of CVS.  Currently you can do the things you describe on OS X.

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





More information about the wx-users mailing list