Class PointGlyphCompositeLayer
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
glyphsIReadOnlyList<SkiaPointGlyph>Glyphs to paint, in draw order.
thinningLengthPixelsPerScaledoubleWhen 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.
thinningMaxRatiodoubleThe 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)