public interface Path
Canvas.createPath()
.Modifier and Type | Method and Description |
---|---|
Path |
bezierTo(float c1x,
float c1y,
float c2x,
float c2y,
float x,
float y)
Adds a bezier curve to the path, from the current position to the specified target, using the
supplied control points.
|
Path |
close()
Closes the path, returning the position to the beginning of the first stroke.
|
Path |
lineTo(float x,
float y)
Adds a line to the path, from the current position to the specified target.
|
Path |
moveTo(float x,
float y)
Moves the position to the given location.
|
Path |
quadraticCurveTo(float cpx,
float cpy,
float x,
float y)
Adds a quadratic curve to the path, from the current position to the specified target, with
the specified control point.
|
Path |
reset()
Resets the current path, removing all strokes and moving the position to (0, 0).
|
Path reset()
Path close()
Path moveTo(float x, float y)
Path lineTo(float x, float y)
Path quadraticCurveTo(float cpx, float cpy, float x, float y)
Path bezierTo(float c1x, float c1y, float c2x, float c2y, float x, float y)
Copyright © 2019. All Rights Reserved.