From: Mark D. <mar...@zn...> - 2007-03-22 23:58:15
|
Hi, I was trying to explain a lot of steps and concepts when really some example code would have been better. As I want to complete something myself where I have to move drawn objects about a canvas, I made sure what I was proposing actually works with an example which I've posted at: http://www.wxperl.co.uk/example3.pl.txt I'm not sure if it would work with the wxGDI interface, but if I had a lot of objects to draw I could speed up the user experience by doing the actual drawing to a separate memoryDC only when the drawing objects actually changed. Then for screen updates, I'd use the built-in fast bitmap BitBit function ($dc->Blit() ) to just copy the region of the bitmap I needed to update to the screen. But with fewer objects to draw, the approach in the example should work just fine. Regards Mark |