]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/AlphaDrawing.py
Register the test under the name displayed by "./test -l"
[wxWidgets.git] / wxPython / demo / AlphaDrawing.py
index 9834afe4f2de7cbbdb0e1153532d81a291032cf9..6fb15a97c3c933c63c81a8692915b3b00798edbd 100644 (file)
@@ -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 = """<html><body>
 <h2><center>Alpha Drawing</center></h2>
 
-The wx.DC on Mac now supports alpha transparent drawing using pens and
-brushes.  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.
-
-<p>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.
 
 </body></html>
 """