Shuxia Ning
2024-10-08 cf4967a0aebab18c5a37137f3e4c61b2d73a54bb
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);
        }
    }
}