// lower level move rectangle bitmap to display bypassing graphics library void GridBitmapTest(int size) { byte[] rect = new byte[size * (int)Math.Ceiling((double)size / 8)]; for (int r = 0; r < rect.Length; r++) { rect[r] = (byte)rand.Next(255); } graphics.Clear(); for (int x = 0; x < display.Width; x += size) { for (int y = 0; y < display.Height; y += size) { graphics.DrawBitmap(x, y, (int)Math.Ceiling((double)size / 8), size, rect, RandColor()); // Console.WriteLine($"{x} {y}"); graphics.Show(); } } }