Hi, I want to draw more pictures to a canvas of a view when I touch the screen, such as when a touch event happened, I will draw a number in the canvas, then a touch event happened again, I want to draw another number in a different area in the canvas(I need keep the first one I drawed just now). so I just draw the numbers in onDraw, and call Invalidate() when touch event happened. But the problem is when I call invalidate(), I need draw all the numbers again, it will waste some effort. so I want to know how to keep the original pic and just add the new part to the original one.... anyone knows? Thanks.
P.S. some one said I can use invalidate(x,y,top, bottom) to invalidate Rect of a canvas, but the problem is I need redraw in area1 and area2, may be more areas, I can not give a specific area when call invalidate (x,y,top, bottom) ... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" 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-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

