Click or drag to resize
CanvasDrawingSession.DrawLine Method (Vector2, Vector2, Color, Single)
Draws a line of the specified width and color.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void DrawLine(
	Vector2 point0,
	Vector2 point1,
	Color color,
	float strokeWidth
)

Parameters

point0
Type: System.Numerics.Vector2
point1
Type: System.Numerics.Vector2
color
Type: Windows.UI.Color
strokeWidth
Type: System.Single
See Also