Exemplo n.º 1
0
        /// <summary>
        /// Draws the rect.
        /// </summary>
        /// <param name="color">The color.</param>
        /// <param name="left">The left.</param>
        /// <param name="top">The top.</param>
        /// <param name="width">The width.</param>
        /// <param name="height">The height.</param>
        public void DrawRect(Color color, int left, int top, int width, int height)
        {
            GDIPen p = new GDIPen(color, 1);

            this.DrawRect(p, left, top, width, height);
            p.Dispose();
        }
Exemplo n.º 2
0
        /// <summary>
        /// Draws the line.
        /// </summary>
        /// <param name="color">The color.</param>
        /// <param name="p1">The p1.</param>
        /// <param name="p2">The p2.</param>
        public void DrawLine(Color color, Point p1, Point p2)
        {
            GDIPen p = new GDIPen(color, 1);

            DrawLine(p, p1, p2);
            p.Dispose();
        }