Hello wxpythoneers,
I’m drawing an image on multiple layers.
The first layer is the background and is the image of a thorax.
The subsequent layers are all groups of lines and circles.
Depending on some selected conditions, one of these layers is animated (the line moves or some circle expands and contracts).
My problem is… how do I draw this multilayer image without having to recompute each layer for every frame of the animation. I want to recompute only the layer that’s animating and reuse the previously computed (and still the same) layers from the previous frame of the animation.
The drawing is done using a wx.GCDC and for certain layers it is rather expensive.
What I need is something like a Blit for each layer but I have no idea how to implement this with GCDC (how do I handle transparency)
Any idea is welcomed.
Thank you in advance.
Peter.
P.S.
The way in works now is almost ok (the software reacts a little bit slower than what I want but is usable)
The processor is really put to work… the python process is constantly
using 50% of processing capability of the system. I can hear my
software start because after I start it the computer’s coolers start to
scream.
···
–
There is NO FATE, we are the creators.