Click or drag to resize
DrawingWindowDrawLine Method (DrawingVisual, Double, Double, Double, Double)
Draws a line segment between (X0, Y0) and (X1, Y1).

Namespace: Algs4Net
Assembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public void DrawLine(
	DrawingVisual v,
	double x0,
	double y0,
	double x1,
	double y1
)

Parameters

v
Type: System.Windows.MediaDrawingVisual
The rendered visual
x0
Type: SystemDouble
the X-coordinate of one endpoint
y0
Type: SystemDouble
the Y-coordinate of one endpoint
x1
Type: SystemDouble
the X-coordinate of the other endpoint
y1
Type: SystemDouble
the Y-coordinate of the other endpoint
See Also