public void Fill(Color fillColor, Rectangle rectangle) { for (int y = 0; y < rectangle.Height; y++) { for (int x = 0; x < rectangle.Width; x++) { SetPixel(rectangle.X + x, rectangle.Y + y, fillColor); } } }