android - Stroke deletion in finger paint -
I am developing a finger-color application. I have a full functionality that wants to delete a full stroke (I do not want the point or full screen deletion) I want to remove the stroke (a single stroke is the middle point between touch and touch). Is there a predefined method in the Android canvas erasing this stroke?
Keep a list of all strokes. When you want to delete one, remove it from the list, cancel your view, and walk through the complete list of all strokes and recreate the canvas.
Comments
Post a Comment