Table of Contents

Class BoldPostProcessor

Namespace
KernSmith.Rasterizer
Assembly
KernSmith.dll

Thickens glyph bitmaps using morphological dilation with a circular kernel. Works as a fallback for rasterizers that don't support outline-level bold transforms.

public sealed class BoldPostProcessor : IGlyphPostProcessor
Inheritance
BoldPostProcessor
Implements
Inherited Members

Constructors

BoldPostProcessor(int)

Creates a bold effect with the given strength.

public BoldPostProcessor(int strength = 1)

Parameters

strength int

Pixels to expand in each direction. Minimum is 1.

Properties

Strength

Pixels to expand in each direction. Default is 1.

public int Strength { get; }

Property Value

int

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