Table of Contents

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

outlineWidth int

Thickness in pixels.

outlineR byte

Outline color red (0-255). Default is black.

outlineG byte

Outline color green (0-255).

outlineB byte

Outline 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

glyph RasterizedGlyph

The glyph to modify.

Returns

RasterizedGlyph