DC.GetAsBitmap working on Windows?

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?

Dan

···

--
Dr. Daniel B. Koch
Oak Ridge National Lab
http://www.ornl.gov/sci/gist/bios/bio_koch.html
(865) 241-9096

Daniel B. Koch wrote:

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!