Table of Contents

Class Line

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

Represents an operator that specifies drawing a line segment connecting two points.

public class Line : CanvasElement
Inheritance
Line
Inherited Members

Properties

Color

Gets or sets the color of the line.

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

Property Value

Scalar

End

Gets or sets the second point of the line segment.

public Point End { get; set; }

Property Value

Point

LineType

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

public LineFlags LineType { get; set; }

Property Value

LineFlags

Shift

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

public int Shift { get; set; }

Property Value

int

Start

Gets or sets the first point of the line segment.

public Point Start { get; set; }

Property Value

Point

Thickness

Gets or sets the thickness of the line.

public int Thickness { get; set; }

Property Value

int

Methods

GetRenderer()

Returns the line 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.