示例#1
0
        public GlyphArray Clone()
        {
            var array = new GlyphArray(Size);

            for (var x = 0; x < Width; x++)
            {
                for (var y = 0; y < Height; y++)
                {
                    array[x, y].Symbol          = this[x, y].Symbol;
                    array[x, y].BackgroundColor = this[x, y].BackgroundColor;
                    array[x, y].ForegroundColor = this[x, y].ForegroundColor;
                }
            }
            return(array);
        }
示例#2
0
 public ConsoleArea(Area area, GlyphArray glyphs)
 {
     Area   = area;
     Glyphs = glyphs;
 }