Returns minimum and maximum axes values of the lines and curves in Path. Returns (0, 0, 0, 0) if Path contains no points. Returned bounds width and height may be larger or smaller than area affected when Path is drawn.
Behaves identically to getBounds() when Path contains only lines. If Path contains curves, computed bounds includes the maximum extent of the quad, conic, or cubic; is slower than getBounds(); and unlike getBounds(), does not cache the result.
OptionaloutputArray: Rectif provided, the bounding box will be copied into this array instead of allocating a new one.
Returns true if the point (x, y) is contained by Path, taking into account FillType.
Returns a copy of this Path.
Returns the number of points in this path. Initially zero.
Returns minimum and maximum axes values of Point array. Returns (0, 0, 0, 0) if Path contains no points. Returned bounds width and height may be larger or smaller than area affected when Path is drawn.
OptionaloutputArray: Rectif provided, the bounding box will be copied into this array instead of allocating a new one.
Return the FillType for this path.
Returns true if there are no verbs in the path.
Returns a new path that covers the same area as the original path, but with the Winding FillType. This may re-draw some contours in the path as counter-clockwise instead of clockwise to achieve that effect. If such a transformation cannot be done, null is returned.
Returns a new path made from combining this path with the other path using the given PathOp. Returns null if the operation fails.
Returns the dashed version of this path. This is the same effect as creating a DashPathEffect and calling filterPath on this path.
Return the set of non-overlapping contours that describe the same area as this original path. The curve order is reduced where possible so that cubics may be turned into quadratics, and quadratics maybe turned into lines.
Returns the the filled equivalent of the stroked path. Returns null if the operation fails (e.g. the path is a hairline).
Optionalopts: StrokeOptsdescribe how stroked path should look.
Take start and stop "t" values (values between 0...1) and return a subset of this path. The trim values apply to the entire path, so if it contains several contours, all of them are including in the calculation. Null is returned if either input value is NaN.
a value in the range [0.0, 1.0]. 0.0 is the beginning of the path.
a value in the range [0.0, 1.0]. 1.0 is the end of the path.
Serializes the contents of this path as a series of commands. The first item will be a verb, followed by any number of arguments needed. Then it will be followed by another verb, more arguments and so on.
Returns this path as an SVG string.
See SkPath.h for more information on this class. A Path is immutable. See PathBuilder for how to construct a path in a mutable fashion.