public Pixel(CharUnion _Char, short _Attributes, int _x, int _y) { Char = _Char; Attributes = _Attributes; X = _x; Y = _y; }
public CharInfo(byte c, ConsoleColor foreColor, ConsoleColor bgCol) { Char = new CharUnion { AsciiChar = c }; Attributes = (short)((short)foreColor + (short)bgCol * 16); }
private CharInfo(CharUnion ch, ConsoleColor fg, ConsoleColor bg) { _ch = ch; Attributes = 0; ForegroundColor = fg; BackgroundColor = bg; }
public CharInfo(char value, ConsoleColor charColor, ConsoleColor backColor) { Char = new CharUnion { UnicodeChar = value }; Attributes = (short)((ushort)charColor + ((ushort)backColor << 4)); }
public CharInfo(char @char, CharAttr attributes) : this() { Char = new CharUnion(@char); Attributes = attributes; }
public ConsoleChar(byte ascii, Color colors) { character = new CharUnion() { ascii = ascii }; color = colors; }
public ConsoleChar(char unicode, Color colors) { character = new CharUnion() { unicode = unicode }; color = colors; }
public CharInfo(char @char, ushort attributes) { this.Char = new CharUnion(); Char.UnicodeChar = @char; Attributes = attributes; }