Class OutlinePostProcessor
- Namespace
- KernSmith.Rasterizer
- Assembly
- KernSmith.dll
Adds a colored outline (border) around each glyph. Works with both grayscale and RGBA glyphs. The outline is anti-aliased for smooth edges.
public sealed class OutlinePostProcessor : IGlyphPostProcessor
- Inheritance
-
OutlinePostProcessor
- Implements
- Inherited Members
Constructors
OutlinePostProcessor(int, byte, byte, byte)
Creates an outline effect with the given thickness and color.
public OutlinePostProcessor(int outlineWidth, byte outlineR = 0, byte outlineG = 0, byte outlineB = 0)
Parameters
outlineWidthintThickness in pixels.
outlineRbyteOutline color red (0-255). Default is black.
outlineGbyteOutline color green (0-255).
outlineBbyteOutline color blue (0-255).
Methods
Process(RasterizedGlyph)
Takes a rendered glyph and returns a new one with the effect applied.
public RasterizedGlyph Process(RasterizedGlyph glyph)
Parameters
glyphRasterizedGlyphThe glyph to modify.