Use wx.MemoryDC
the MemoryDC is created using an Bitmap and all the drawings are contained into this bitmap.
You can save the bitmap in PNG format.
Peter
···
On Tue, Apr 15, 2008 at 10:28 AM, oyster lepto.python@gmail.com wrote:
As we know, there is a samples\doodle\superdoodle.py with wxpython. It
can save its native file format, but what if I want to save my drawing
to a PNG/JPG file?
I have read the src, but find 2 aspects which block me:
‘dc’ is not saved as class var,
even if I get dc, I don’t know how to save it to file.
Any hints? thanx in advance.
wxpython-users mailing list
–
There is NO FATE, we are the creators.