开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜