Пример #1
0
 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);
 }
Пример #3
0
 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(byte c, ConsoleColor foreColor, ConsoleColor bgCol)
			{
				Char = new CharUnion { AsciiChar = c };
				Attributes = (short)((short)foreColor + (short)bgCol * 16);
			}
Пример #6
0
 public CharInfo(char @char, CharAttr attributes) : this()
 {
     Char       = new CharUnion(@char);
     Attributes = attributes;
 }
Пример #7
0
 public ConsoleChar(byte ascii, Color colors)
 {
     character = new CharUnion() { ascii = ascii };
     color = colors;
 }
Пример #8
0
 public ConsoleChar(char unicode, Color colors)
 {
     character = new CharUnion() { unicode = unicode };
     color = colors;
 }
Пример #9
0
 public CharInfo(char @char, ushort attributes)
 {
     this.Char        = new CharUnion();
     Char.UnicodeChar = @char;
     Attributes       = attributes;
 }