Xamarin.CommunityToolkit by Microsoft

<PackageReference Include="Xamarin.CommunityToolkit" Version="1.3.0-compat-alpha3" />

.NET API 451,464 bytes

 Line

public class Line : BindableObject

public static readonly BindableProperty GranularityProperty

public static readonly BindableProperty LineColorProperty

public static readonly BindableProperty LineWidthProperty

public static readonly BindableProperty PointsProperty

public bool EnableSmoothedPath { get; set; }

public int Granularity { get; set; }

public Color LineColor { get; set; }

public float LineWidth { get; set; }

public ObservableCollection<Point> Points { get; set; }

public Line()

public static Stream GetImageStream(IEnumerable<Point> points, Size imageSize, float lineWidth, Color strokeColor, Color backgroundColor)

public Stream GetImageStream(double imageSizeWidth, double imageSizeHeight, Color backgroundColor)