private void Form1_Paint (object sender, PaintEventArgs e) { e.Graphics.TranslateTransform (100, 80); GraphicsContainer gc = e.Graphics.BeginContainer (); e.Graphics.RotateTransform (30); e.Graphics.DrawRectangle (Pens.Red, -60, -30, 120, 60); GraphicsContainer gc2 = e.Graphics.BeginContainer (); e.Graphics.ScaleTransform (0.5f, 0.5f); e.Graphics.DrawRectangle (Pens.Green, -60, -30, 120, 60); e.Graphics.EndContainer (gc2); e.Graphics.EndContainer (gc); e.Graphics.DrawRectangle (Pens.Blue, -60, -30, 120, 60);