Path

Page 1 2

public void addRoundRect(RectF rect, float[] radii, Direction dir) source
public void addRoundRect(float l, float t, float r, float b, float[] radii, Direction dir) source

A round rectangle, radii x and y of the top left, top right, bottom right and bottom left corners.

public void addPath(Path src, float dx, float dy) source
public void addPath(Path src) source
public void addPath(Path src, Matrix matrix) source
public void offset(float dx, float dy, Path dst) source
public void offset(float dx, float dy) source
public void setLastPoint(float dx, float dy) source
public void transform(Matrix matrix, Path dst) source
public void transform(Matrix matrix) source
public void computeBounds(RectF bounds, boolean exact) source

The bounds of the points (the control points too, as Android's computeBounds gives them).

public boolean op(Path path, Op op) source

Boolean operations: a union keeps both outlines with the winding rule, a difference adds the second reversed, which is exact for the shapes that do not overlap themselves (rounded and cut corners); an intersection of two rectangles is exact, other intersections keep the first path.

public boolean op(Path path1, Path path2, Op op) source
public float[] approximate(float acceptableError) source
public java.util.List<float[]> flatten(float tolerance, boolean[] closedOut) source

The path as polylines, one for each contour: curves flattened to within tolerance.

public String toString() source

Page 1 2


Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.