Table of Contents

Class RichGlyphOptions

Namespace
SixLabors.ImageSharp.Drawing.Processing
Assembly
SixLabors.ImageSharp.Drawing.dll

Provides GlyphOptions for rendering a glyph by id with per-glyph Brush and Pen support. The paint is carried to the renderer via a RichTextRun, so it can vary per glyph across a run.

public class RichGlyphOptions : GlyphOptions
Inheritance
RichGlyphOptions
Inherited Members

Properties

Brush

Gets or sets the brush used for filling this run.

public Brush? Brush { get; set; }

Property Value

Brush

OverlinePen

Gets or sets the pen used for drawing overline features for this run.

public Pen? OverlinePen { get; set; }

Property Value

Pen

Pen

Gets or sets the pen used for outlining this run.

public Pen? Pen { get; set; }

Property Value

Pen

StrikeoutPen

Gets or sets the pen used for drawing strikeout features for this run.

public Pen? StrikeoutPen { get; set; }

Property Value

Pen

UnderlinePen

Gets or sets the pen used for drawing underline features for this run.

public Pen? UnderlinePen { get; set; }

Property Value

Pen

Methods

CreateTextRun()

Creates the text run associated with the glyph.

protected override TextRun CreateTextRun()

Returns

TextRun

The text run associated with the glyph.