You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's useful to pass an array of points to SKCanvas.DrawPoints but not to draw all of them. Currently there is no public method of accomplishing a partial array draw.
Describe the solution you would like
Add an override to SKCanvas.DrawPoints to allow for passing a count parameter to the SkiaApi.sk_canvas_draw_points method instead of just passing the entire array length as it currently does.
Describe alternatives you have considered
Currently the way to get around this is to create an array with the proper size ahead of time and allocate it on the heap but that requires allocation. It would be even nicer to utilize Spans for this so they can be sliced, but I see multiple PRs #2617 & #2669 are stalled so I'm not sure about their integration.
Additional context
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem?
Sometimes it's useful to pass an array of points to
SKCanvas.DrawPoints
but not to draw all of them. Currently there is no public method of accomplishing a partial array draw.Describe the solution you would like
Add an override to
SKCanvas.DrawPoints
to allow for passing a count parameter to theSkiaApi.sk_canvas_draw_points
method instead of just passing the entire array length as it currently does.Describe alternatives you have considered
Currently the way to get around this is to create an array with the proper size ahead of time and allocate it on the heap but that requires allocation. It would be even nicer to utilize Spans for this so they can be sliced, but I see multiple PRs #2617 & #2669 are stalled so I'm not sure about their integration.
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: