SkPath
SkPath is a core class in the Skia graphics library used to describe shapes for filling or stroking. It represents geometry as a sequence of contours defined by a compact combination of commands (verbs) and a parallel list of points. The primary verbs include moveTo, lineTo, quadTo, conicTo (which carries a weight for the conic segment), cubicTo, and close. A path may consist of multiple contours, and a fill type setting determines how the interior of the path is filled (for example, winding or even-odd rules).
Construction and modification are supported either directly or via a builder. You can create an empty SkPath
Boolean path operations are provided to combine two paths using a path operation (often via SkPath::Op) with
Rendering and measurement are routine tasks for SkPath. The path is passed to rendering routines such as
See also: Skia, SkPathBuilder, SkCanvas, SkPathMeasure, SkPathEffect.