Table of Contents

Class AddTextBase

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

Provides an abstract base class for operators that specify drawing text strokes with a specified font and color.

public abstract class AddTextBase : CanvasElement
Inheritance
AddTextBase
Derived
Inherited Members

Properties

Alignment

Gets or sets the horizontal alignment of the text.

public StringAlignment Alignment { get; set; }

Property Value

StringAlignment

Color

Gets or sets the color of the text.

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

Property Value

Scalar

Font

Gets or sets the font style used to render the text strokes.

public Font Font { get; set; }

Property Value

Font

LineAlignment

Gets or sets the vertical alignment of the text.

public StringAlignment LineAlignment { get; set; }

Property Value

StringAlignment

Text

Gets or sets the text to draw.

public string Text { get; set; }

Property Value

string

TextRenderingHint

Gets or sets the rendering mode used for the text strokes.

public TextRenderingHint TextRenderingHint { get; set; }

Property Value

TextRenderingHint