Table of Contents

Class HeightStretchPostProcessor

Namespace
KernSmith.Rasterizer
Assembly
KernSmith.dll

Scales glyph height by a percentage. 100 = normal, 120 = 20% taller, 80 = 20% shorter.

public sealed class HeightStretchPostProcessor : IGlyphPostProcessor
Inheritance
HeightStretchPostProcessor
Implements
Inherited Members

Constructors

HeightStretchPostProcessor(int)

Creates a height stretch effect.

public HeightStretchPostProcessor(int heightPercent)

Parameters

heightPercent int

Height percentage (100 = normal, 120 = 20% taller). Minimum is 10.

Properties

HeightPercent

Target height as a percentage. 100 = no change.

public int HeightPercent { 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