public void RemoveRows(IList<int> rowsToRemove)
{
Color[] newData = new Color[width * height];
int destinationY = 0;
int destinationX = 0;
for (int y = 0; y < height; y++)
{
if (rowsToRemove.Contains(y))
{
continue;
}
destinationX = 0;
for (int x = 0; x < width; x++)
{
newData[destinationY * width + destinationX] = mData[y * width + x];
destinationX++;
}
destinationY++;
}
height -= rowsToRemove.Count;
mData = newData;
}