I want to to animation as follows. The first call of onDraw, I will
draw the scene. Subsequent times, I want to translate the scene, by
doing canvas.translate(dx, dy), but the canvas returned by onDraw is
always blank. Thus, I have to redraw the whole scene again.
public void onDraw(Canvas canvas){
canvas.translate(dx, dy);
drawScene(canvas);
}
Is there anyway I can save the scene drawn on to canvas from the
first time so that subsequent times, I just need to translate? This
will improve performance significantly.
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---