Table of Contents

Class TextPaintOp

Namespace
EncDotNet.S100.Rendering.Scene
Assembly
EncDotNet.S100.Rendering.Scene.dll

A resolved text label. The anchor is already selected (Part 9 §11.4/§11.5).

public sealed class TextPaintOp : PaintOp
Inheritance
TextPaintOp
Inherited Members

Properties

BackColor

Resolved background colour, or null when the label has no background box.

public RgbaColor? BackColor { get; init; }

Property Value

RgbaColor?

FontProportion

Font proportion (S-100 Part 9 FontCharacteristics.proportion).

public TextFontProportion FontProportion { get; init; }

Property Value

TextFontProportion

FontSizePx

Font size in display pixels (already folds in the renderer-global text scale).

public double FontSizePx { get; init; }

Property Value

double

FontWeight

Font weight (S-100 Part 9 FontCharacteristics.weight).

public TextFontWeight FontWeight { get; init; }

Property Value

TextFontWeight

ForeColor

Resolved foreground colour (transparency already applied).

public RgbaColor ForeColor { get; init; }

Property Value

RgbaColor

HaloColor

Resolved halo colour stroked around the glyphs, or null for no halo.

public RgbaColor? HaloColor { get; init; }

Property Value

RgbaColor?

HaloWidthPx

Halo stroke width in display pixels (already folds in the text scale).

public double HaloWidthPx { get; init; }

Property Value

double

HorizontalAlignment

Horizontal alignment relative to the anchor.

public TextHorizontalAlignment HorizontalAlignment { get; init; }

Property Value

TextHorizontalAlignment

OffsetXpx

Horizontal offset from the anchor, in display pixels.

public double OffsetXpx { get; init; }

Property Value

double

OffsetYpx

Vertical offset from the anchor, in display pixels (screen-space +Y = down).

public double OffsetYpx { get; init; }

Property Value

double

PlacementArea

The surface the anchor is kept in view within (S-100 Part 9 AreaPlacement:VisibleParts), or null when the anchor is fixed. A live renderer draws at AnchorIn((double X, double Y), double, double, double, double) for its view instead of World.

public PlacementArea? PlacementArea { get; init; }

Property Value

PlacementArea

Text

The literal text to render.

public required string Text { get; init; }

Property Value

string

VerticalAlignment

Vertical alignment relative to the anchor.

public TextVerticalAlignment VerticalAlignment { get; init; }

Property Value

TextVerticalAlignment

World

Anchor position in EPSG:3857 metres.

public required (double X, double Y) World { get; init; }

Property Value

(double X, double Y)