X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/41c4b3ef21bd0ab2772c535b22ef67ab214b6813..1002abaa77f5d2210e573ec9d3da6fb56e3432f9:/wxPython/demo/AlphaDrawing.py diff --git a/wxPython/demo/AlphaDrawing.py b/wxPython/demo/AlphaDrawing.py index 9834afe4f2..6fb15a97c3 100644 --- a/wxPython/demo/AlphaDrawing.py +++ b/wxPython/demo/AlphaDrawing.py @@ -35,7 +35,13 @@ then these squares should be transparent. dc.SetBrush(wx.Brush(brushclr)) rect.SetPosition(pos) dc.DrawRoundedRectangleRect(rect, 8) - + + # some additional testing stuff + #dc.SetPen(wx.Pen(wx.Colour(0,0,255, 196))) + #dc.SetBrush(wx.Brush(wx.Colour(0,0,255, 64))) + #dc.DrawCircle(50, 275, 25) + #dc.DrawEllipse(100, 275, 75, 50) + #---------------------------------------------------------------------- @@ -50,13 +56,13 @@ def runTest(frame, nb, log): overview = """
You can consider this a \"preview of coming attractions\" for the -other platforms. +The wx.GCDC class is a class that implemented the wx.DC API using the +new wx.GraphicsContext class, and so it supports anti-aliased drawing +using pens and brushes, that can optionally also be drawn using an +alpha transparency. (On the Mac all the DC classes are using this new +implementation.) This is accomplished by enabling the wx.Colour class +to have a fourth component for the alpha value, where 0 is fully +transparent, and 255 is fully opaque. """