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 TProduct.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);
| }
| }
| }
|
|