How can I draw (with finger) crisp CLOSED shape on Android. I can get the series of points froim touch input and I need to put custom curved shape which corresponds (doesn't have to go exactly through the points) the points.
Asked
Active
Viewed 271 times
1 Answers
2
Track your touch points and apply them in order to construct a Path
(docs link) that can be drawn. Path
is set up in such a way that you can append each point to it as they come in, and you can decide what type of connection (line, arc, bezier) to draw in between.
You can use proximity between the initial touch and current touch or similar logic to determine when to close the contour, and then just call close()
.

devunwired
- 62,780
- 12
- 127
- 139
-
Thank you. What kind of connection would you recommend in this situation ? Quad ? Cubic ? – Jakub Kinst Nov 09 '12 at 20:30
-
It depends entirely what the end goal of your application is, play around with them and see what you come up with. – devunwired Nov 09 '12 at 22:18