Table of Contents

Class PointGlyphCompositeLayer

Namespace
EncDotNet.S100.Renderers.Skia.Scene
Assembly
EncDotNet.S100.Renderers.Skia.dll

Paints projected point glyphs into a shared headless composite viewport.

public sealed class PointGlyphCompositeLayer : CompositeLayer
Inheritance
PointGlyphCompositeLayer
Inherited Members

Constructors

PointGlyphCompositeLayer(IReadOnlyList<SkiaPointGlyph>, double, double)

Creates a point-glyph composite layer.

public PointGlyphCompositeLayer(IReadOnlyList<SkiaPointGlyph> glyphs, double thinningLengthPixelsPerScale = 0, double thinningMaxRatio = 0.5)

Parameters

glyphs IReadOnlyList<SkiaPointGlyph>

Glyphs to paint, in draw order.

thinningLengthPixelsPerScale double

When positive, glyphs are thinned point by point (ThinPoints(ReadOnlySpan<double>, ReadOnlySpan<double>, ReadOnlySpan<double>, ReadOnlySpan<double>, double, List<int>)) for the viewport they are drawn into: this is the on-screen length, in pixels, of a glyph at SymbolScale 1. Zero (the default) draws every glyph.

thinningMaxRatio double

The thinning ratio Rmax.

Methods

Draw(SKCanvas, Viewport)

Paints this layer onto canvas against the shared composite viewport. Implementations must not clear the canvas — the compositor clears the background once before drawing the ordered layer list.

public override void Draw(SKCanvas canvas, Viewport viewport)

Parameters

canvas SKCanvas

The composite canvas.

viewport Viewport

The shared composite viewport (pixel space).