Drawing gets slow
I am develop my writing application on my pho开发者_如何学JAVAne. I need to draw the stroke on the canvas. I need to save all the points in order to redraw. I found that as the number of points grow. It gets slow. How ever i need all the points to redraw. Is there a way to save the previous drawing and restore the background for canvas?
Your canvas you are drawing in should be part of a view. Then you should be able to use getDrawingCache.
You need to enable caching too... check this.
Hope that helps.
精彩评论