I have a wx.ScrolledWindow
where is drawn on using cairo
. I have implemented a zoom-functionality which right now redraws the whole content.
But as there will be up to 200 curves to draw I should consider a more performant solution.
I have thought of these:
- Buffering images for the zoom factors -1/+1 (Memory consuming)
- Using librsvg and buffer an SVG image (I have read something about this. Does librsvg work under Windows too?)
- Storing the cairo.Context after drawing groups of curves, and on zoom restoring it (just an idea.. is that possible?)
Are there other possibilities, and: what is the best solution?
Thanks a lot
BitmapFromImageSurface
– Shanks