Click or drag to resize
CanvasDrawingSession.DrawLine Method (Single, Single, Single, Single, ICanvasBrush, Single, CanvasStrokeStyle)
Draws a line of the specified width, using a brush to define the color and with a custom stroke style.

Namespace:  Microsoft.Graphics.Canvas
Assembly:  Microsoft.Graphics.Canvas (in Microsoft.Graphics.Canvas.dll) Version: 0.0.0.0
Syntax
C#
public void DrawLine(
	float x0,
	float y0,
	float x1,
	float y1,
	ICanvasBrush brush,
	float strokeWidth,
	CanvasStrokeStyle strokeStyle
)

Parameters

x0
Type: System.Single
y0
Type: System.Single
x1
Type: System.Single
y1
Type: System.Single
brush
Type: Microsoft.Graphics.Canvas.Brushes.ICanvasBrush
strokeWidth
Type: System.Single
strokeStyle
Type: Microsoft.Graphics.Canvas.Geometry.CanvasStrokeStyle
See Also