Nitro wrote: > Am 07.05.2008, 08:24 Uhr, schrieb Chris.Barker <[EMAIL PROTECTED]>: >
> Bitmaps are about 100 times slower There is an optimization coming for bitmaps, although it might not be able to be backported to 2.8... Most of the slowness now (on Windows at least) is because it has to be converted to a different native format to be able to be drawn via the GraphicsContext. The optimization is that there will be a wx.GraphicsBitmap class that will let you do the conversion only once and reuse the converted bitmap on subsequent draws. BTW, there are also wx.GraphicsPen and wx.GraphicsBrush that you can use to save on conversion time from wx.Pen and wx.Brush, it's not as much of a savings but might be worth it. > My results were obtained on Vista x64, so keep this in mind. I am curious > about the results for other platforms. On wxMac it will not have much difference from wx.DC because on that platform wx.DC is the same as wx.GCDC so it is already using wx.GraphicsContext underneath. On wxGTK it probably depends somewhat on which version of Cairo is installed. -- Robin Dunn Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython! _______________________________________________ FloatCanvas mailing list [email protected] http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
