Table of Contents

Class PolyLine

Namespace
Bonsai.Vision.Drawing
Assembly
Bonsai.Vision.dll

Represents an operator that specifies drawing one or more polygonal curves.

public class PolyLine : CanvasElement
Inheritance
PolyLine
Inherited Members

Properties

Closed

Gets or sets a value indicating whether the polylines should be closed. If closed, a line is drawn between the first and last vertex of every contour.

public bool Closed { get; set; }

Property Value

bool

Color

Gets or sets the color of the polylines.

[Range(0, 255)]
[Precision(0, 1)]
[TypeConverter(typeof(BgraScalarConverter))]
public Scalar Color { get; set; }

Property Value

Scalar

LineType

Gets or sets a value specifying the line drawing algorithm used to draw the polylines.

public LineFlags LineType { get; set; }

Property Value

LineFlags

Points

Gets or sets the array of vertices specifying each polyline.

public Point[][] Points { get; set; }

Property Value

Point[][]

Shift

Gets or sets the number of fractional bits in the vertex coordinates.

public int Shift { get; set; }

Property Value

int

Thickness

Gets or sets the thickness of the polyline edges.

public int Thickness { get; set; }

Property Value

int

Methods

GetRenderer()

Returns the polyline drawing operation.

protected override Action<IplImage> GetRenderer()

Returns

Action<IplImage>

The Action<T> object that will be invoked to apply the drawing operation to the canvas bitmap during rendering.