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
heightPercentintHeight 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
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.