SKCanvas.DrawLine 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.
Overloads
DrawLine(SKPoint, SKPoint, SKPaint) |
Draws a line on the canvas. |
DrawLine(Single, Single, Single, Single, SKPaint) |
Draws a line on the canvas. |
DrawLine(SKPoint, SKPoint, SKPaint)
DrawLine(Single, Single, Single, Single, SKPaint)
Draws a line on the canvas.
public void DrawLine (float x0, float y0, float x1, float y1, SkiaSharp.SKPaint paint);
Parameters
- x0
- Single
The first point x-coordinate.
- y0
- Single
The first point y-coordinate.
- x1
- Single
The second point x-coordinate.
- y1
- Single
The second point y-coordinate.
- paint
- SKPaint
The paint to use when drawing the line.
Applies to
Zusammenarbeit auf GitHub
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.