Page 1 2
public void addRoundRect(RectF rect, float[] radii, Direction dir) sourcepublic void addRoundRect(float l, float t, float r, float b, float[] radii, Direction dir) sourceA 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) sourcepublic void addPath(Path src) sourcepublic void addPath(Path src, Matrix matrix) sourcepublic void offset(float dx, float dy, Path dst) sourcepublic void offset(float dx, float dy) sourcepublic void setLastPoint(float dx, float dy) sourcepublic void transform(Matrix matrix, Path dst) sourcepublic void transform(Matrix matrix) sourcepublic void computeBounds(RectF bounds, boolean exact) sourceThe bounds of the points (the control points too, as Android's computeBounds gives them).
public boolean op(Path path, Op op) sourceBoolean 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) sourcepublic float[] approximate(float acceptableError) sourcepublic java.util.List<float[]> flatten(float tolerance, boolean[] closedOut) sourceThe path as polylines, one for each contour: curves flattened to within tolerance.
public String toString() sourcePage 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.