I have a version using a memory bitmap that works on windows (It is
attached). I' am going to test this on linux later at home, but I think it
is going to work.
I put all the logical-pixel transform on a wxMemoryDC derived class.
Thanks for the help (Tim and Chris)
Cristian
CerCanvasEN.py (6.52 KB)
···
-----Original Message-----
From: Chris Barker [mailto:Chris.Barker@noaa.gov]
Sent: Thursday, October 24, 2002 2:51 PM
To: wxpython-users@lists.wxwindows.org
Subject: Re: [wxPython] Problem saving drawing to a file
"Echeverria Rabi, Cristián" wrote:
> One alternative is to do ALL your drawing into a memory bitmap
> Do you have a routine that redraws your canvas?Yes, I think that's the way to go!!
I quickly tried to re-factor your code to use an offscreen bitmap. The
saving ot a file works, but the drawing is somehow wrong. I htink I
messed up your logical-pixel transform somehow. Anyway, here it is, it
might give you some ideas.
-Chris