diff --git a/binding/SkiaSharp/SKCanvas.cs b/binding/SkiaSharp/SKCanvas.cs index d1d7300964..d0b5ec7f0a 100644 --- a/binding/SkiaSharp/SKCanvas.cs +++ b/binding/SkiaSharp/SKCanvas.cs @@ -420,6 +420,17 @@ public void DrawPoints (SKPointMode mode, SKPoint[] points, SKPaint paint) } } + public void DrawPoints (SKPointMode mode, SKPoint[] points, int count, SKPaint paint) + { + if (paint == null) + throw new ArgumentNullException (nameof (paint)); + if (points == null) + throw new ArgumentNullException (nameof (points)); + fixed (SKPoint* p = points) { + SkiaApi.sk_canvas_draw_points (Handle, mode, (IntPtr)count, p, paint.Handle); + } + } + // DrawPoint public void DrawPoint (SKPoint p, SKPaint paint)