Thanks Robin. What I want to do is use various DC drawing commands such as DrawPolygon and then recover the result as a bitmap for other kinds of processing or save it as a file. So basically a DC is a write-only kind of construct?
Thanks Robin. What I want to do is use various DC drawing commands such as DrawPolygon and then recover the result as a bitmap for other kinds of processing or save it as a file. So basically a DC is a write-only kind of construct?
Yes and no. The DC itself is pretty much write-only, but a wx.MemoryDC has a bitmap as the target of the drawing commands, so when you are done drawing the results are already in the bitmap.
···
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!