rectangle with transparency

Xavier Miller xavier.miller at cauwe.org
Mon May 5 11:53:54 PDT 2008


Hello,

I also have transparency problems using wxMemoryDC and transparent 
pen/brushes and transparent bitmaps. It works in MacOS but not in GTK 
and Windows. Will wxGCDC apply for me ?

Kind regards,
Xavier Miller.

Armel a écrit :
> "Robin Dunn" <robin at alldunn.com> a écrit dans le message de news: 
> mailman.19.1210011978.27688.wx-users at lists.wxwidgets.org...
>> 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.
> 
> thank you all :-)
> 
> Armel
> 
> 
> _______________________________________________
> wx-users mailing list
> wx-users at lists.wxwidgets.org
> http://lists.wxwidgets.org/mailman/listinfo/wx-users


More information about the wx-users mailing list