mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.55k stars 543 forks source link

Added SKCanvas.DrawPoints with Count Override #2987

Open DJGosnell opened 2 months ago

DJGosnell commented 2 months ago

Description of Change

Sometimes it's useful to pass an array of points to SKCanvas.DrawPoints but not to draw all of them. The API currently doesn't accept Spans at this point, so it is a stop-gap until that decision has been made.

No tests added currently as there is not currently a test in the tests/Tests/SkiaSharp/SKCanvasTest.cs file for drawing points.

Bugs Fixed

API Changes

Add public void SKCanvasDrawPoints (SKPointMode mode, SKPoint[] points, int count, SKPaint paint) overload.

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

dotnet-policy-service[bot] commented 2 months ago

Hey there @DJGosnell! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

DJGosnell commented 2 months ago

@dotnet-policy-service agree