public void DrawRectangle(Rectangle rect, Color c)
        {
            var p1 = new Point(rect.Left, rect.Top);
            var p2 = new Point(rect.Left, rect.Bottom);
            var p3 = new Point(rect.Right, rect.Bottom);
            var p4 = new Point(rect.Right, rect.Top);

            DrawLine(p1, p2, c);
            DrawLine(p2, p3, c);
            DrawLine(p3, p4, c);
            DrawLine(p4, p1, c);
        }
Exemple #2
0
        public void DrawRectangle(Rectangle rect, Color c)
        {
            var p1 = new Point(rect.Left, rect.Top);
            var p2 = new Point(rect.Left, rect.Bottom );
            var p3 = new Point(rect.Right, rect.Bottom);
            var p4 = new Point(rect.Right , rect.Top);

            DrawLine(p1, p2, c);
            DrawLine(p2, p3, c);
            DrawLine(p3, p4, c);
            DrawLine(p4, p1, c);
        }