user958274
user958274

Reputation: 21

Drawing gets slow

I am develop my writing application on my phone. 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?

Upvotes: 0

Views: 820

Answers (1)

Matthieu
Matthieu

Reputation: 16397

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.

Upvotes: 1

Related Questions