0

I have a java list with points that needs to be drawn as a path in a canvas. I would like to create something like a curved line from the point list.

An example of the line can be found here: http://postimg.org/image/67p4ztil1/

thanx

stan
  • 229
  • 3
  • 10

1 Answers1

1

Have you checked FingerPaint Demo in Android SDK Examples. You can use Path.quadTo() or Path.cubicTo() for that.

This may be useful for you - Bezier curve and canvas.

EDIT: Line Path: Bezier Curves

http://rengelbert.com/blog/line-path-bezier-curves/

Community
  • 1
  • 1
Kanak Sony
  • 1,570
  • 1
  • 21
  • 37