开发者

Drawing gets slow

开发者 https://www.devze.com 2023-04-08 16:27 出处:网络
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 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

精彩评论

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