Paths are used to draw curves and complex shapes. It can be drawn on an ICanvas using the DrawPath method, which requires a PathF argument.
The following example shows how to draw a path:
C#
PathF path = new PathF();
path.MoveTo(40, 10);
path.LineTo(70, 80);
path.LineTo(10, 50);
path.Close();
canvas.StrokeColor = Colors.Green;
canvas.StrokeSize = 6;
canvas.DrawPath(path);
Share with