Semi-transparent fills

Daniel B. Koch wrote:

Thanks Peter! Using wx.GCDC allows me to use a GraphicsBrush that respects the wx.Colour alpha settings on all three platforms. Does the Mac use GCDC instead of DC by default?

Sort of. They both use the same back end implementation.

I did notice that GetBoundingBox does not seem to work with GCDC. Rendering also seems slower on Linux and Windows than DC. Does that make sense?

Yep. On Linux wxGraphicsContext uses the Cairo lib, which is slower (but more capable) than what wxDC is using. That should be improving in time, as all GTK drawing is supposed to be moving to Cairo. On Windows it is using the GDI+ lib instead of plain GDI.

I'm wrapping a BufferedDC.

Depending on the structure of your app you can probably get by with only doing this on Windows since the other platforms are double buffered by default. There is also the wxAutoBufferedPaintDC helper.

ยทยทยท

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