SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

Added SKCanvas.DrawPoints with Count Override

Open DJGosnell opened this issue 5 months ago • 2 comments

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<T> 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

  • Fixes #2986

API Changes

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

Behavioral Changes

None.

Required skia PR

None.

PR Checklist

  • [ ] Has tests (if omitted, state reason in description)
  • [x] Rebased on top of main at time of PR
  • [ ] Merged related skia PRs
  • [x] Changes adhere to coding standard
  • [ ] Updated documentation

DJGosnell avatar Sep 03 '24 02:09 DJGosnell