SKCanvas.DrawPoints(SKPointMode, SKPoint[], SKPaint) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Draws an array of points, lines or a polygon in the canvas, one at a time.
public void DrawPoints (SkiaSharp.SKPointMode mode, SkiaSharp.SKPoint[] points, SkiaSharp.SKPaint paint);
Parameters
- mode
- SKPointMode
Determines how the points array will be interpreted: as points, as coordinates to draw lines, or as coordinates of a polygon.
- points
- SKPoint[]
The array of points to draw.
- paint
- SKPaint
The paint to use when drawing the points.
Remarks
For Points, each point is drawn centered at its coordinate, and its size is specified by the paint's stroke-width. It draws as a square, unless the paint's StrokeCap is Round, in which the points are drawn as circles.
For Lines, each pair of points is drawn as a line segment, respecting the paint's settings for cap, join and width.
For Polygon, the entire array is drawn as a series of connected line segments.
Note that, while similar, the line and polygon modes draw slightly differently than the equivalent path built with a series of move to, line to calls, in that the path will draw all of its contours at once, with no interactions if contours intersect each other (think Xor).
Applies to
SkiaSharp
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기