public static ConsoleBuffer ResampledCopy(ConsoleBuffer buffer, int width, int height)
{
var sb = new ConsoleBuffer(width, height);
double dw = ((double)buffer.Width / width);
double dh = ((double)buffer.Height / height);
for(int i = 0; i < width; i++)
for(int j = 0; j < height; j++)
{
sb._buffer[j, i].BackColor = buffer._buffer[(int)(j * dh), (int)(i * dw)].BackColor;
}
return sb;
}