AsciiArtWriter

Description

sealed class Tinman.Terrain.Imaging.AsciiArtWriter

Derived from

ImageWriter abstract

An IImageWriter that converts grayscale images to ASCII art.

Public / Constructors

Ascii​Art​Writer


public constructor AsciiArtWriter → (5)

output in : StringBuilder

[not-null]
The output buffer for the ASCII art.

columns opt : int32 = 80

[>=1]
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

[>=1]
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.