編集

次の方法で共有


SKCanvas.DrawLine Method

Definition

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)

Draws a line on the canvas.

public void DrawLine (SkiaSharp.SKPoint p0, SkiaSharp.SKPoint p1, SkiaSharp.SKPaint paint);

Parameters

p0
SKPoint

The first point coordinates.

p1
SKPoint

The second point coordinates.

paint
SKPaint

The paint to use when drawing the line.

Applies to

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