Table of Contents

Class BitBuffer

Namespace
AshConsoleGraphics
Assembly
AshConsoleGraphics.dll

Buffer for elements that are connected lines

public class BitBuffer
Inheritance
BitBuffer
Inherited Members

Constructors

BitBuffer(int, int)

Initializes a new empty buffer with its size

public BitBuffer(int x, int y)

Parameters

x int
y int

Properties

Xsize

public int Xsize { get; }

Property Value

int

Ysize

public int Ysize { get; }

Property Value

int

Methods

AddBuffer(int, int, BitBuffer)

Adds a whole buffer

public void AddBuffer(int x, int y, BitBuffer b)

Parameters

x int

The x position of the buffer, top left corner

y int

The y position of the buffer, top left corner

b BitBuffer

The other buffer

SetAllTrue()

Sets the whole buffer to true and returns itself

public BitBuffer SetAllTrue()

Returns

BitBuffer

SetBit(int, int, bool)

Sets a bit

public void SetBit(int x, int y, bool b)

Parameters

x int

The x position of the bit

y int

The y position of the bit

b bool

The bit

ToBuffer(char[], CharFormat?)

Transforms itself to a normal buffer of connected lines

public Buffer ToBuffer(char[] chars, CharFormat? def)

Parameters

chars char[]

16 charachters that are the coneccted line. An example would be "·───│┌┐┬│└┘┴│├┤┼"

def CharFormat

The default format

Returns

Buffer