tangxu
2024-03-20 7947ecd7933cc92f5d9565afb51aff6e744074c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
 
namespace IStation.Extensions
{
    /// <summary>
    /// Graphics 拓展
    /// </summary>
    public static class GraphicsExtension
    {
        /// <summary>
        /// 绘制矩形
        /// </summary>
        public static void DrawRectangleF(this Graphics g, Pen pen, RectangleF rectf)
        {
            g.DrawRectangle(pen, rectf.X, rectf.Y, rectf.Width, rectf.Height);
        }
    }
}