sealed class Tinman.Terrain.Imaging.AsciiArtWriter

Derived from

ImageWriter abstract

An IImageWriter that converts grayscale images to ASCII art.

Public / Constructors


public constructor AsciiArtWriter → (5)

output in : StringBuilder

The output buffer for the ASCII art.

columns opt : int32 = 80

Width of output ASCII art, in columns.

prefix opt : string = null

Optional line prefix to prepend to each ASCII art scanline.

aspectRatio opt : int32 = 50

Aspect ratio of the ASCII art characters, in percent.

lineEnding opt : LineEnding = LineEnding.Native

The line ending to use after each ASCII art scanline.

Creates a new instance of AsciiArtWriter.