Graphics.FillPolygon
FillPolygon(Brush, PointF[])
填充由 PointF 结构指定的点数组和 Alternate 定义的多边形内部。
public void FillPolygon(Brush brush, PointF[] points)
| 参数 | 类型 | 描述 |
|---|
| brush | Brush | Brush,决定填充的特性。 |
| points | PointF[] | 一个 PointF 结构数组,表示要填充的多边形的顶点。 |
异常
| 异常 | 条件 |
|---|
| ArgumentNullException | brush 为 null。-or- points 为 null。 |
另请参见
FillPolygon(Brush, PointF[], FillMode)
使用指定的填充模式,填充由 PointF 结构指定的点数组定义的多边形内部。
public void FillPolygon(Brush brush, PointF[] points, FillMode fillMode)
| 参数 | 类型 | 描述 |
|---|
| brush | Brush | Brush,决定填充的特性。 |
| points | PointF[] | 一个 PointF 结构数组,表示要填充的多边形的顶点。 |
| fillMode | FillMode | FillMode 枚举的成员,决定填充的样式。 |
异常
| 异常 | 条件 |
|---|
| ArgumentNullException | brush 为 null。-or- points 为 null。 |
另请参见
FillPolygon(Brush, Point[])
填充由 Point 结构指定的点数组和 Alternate 定义的多边形内部。
public void FillPolygon(Brush brush, Point[] points)
| 参数 | 类型 | 描述 |
|---|
| brush | Brush | Brush,决定填充的特性。 |
| points | Point[] | 一个 Point 结构数组,表示要填充的多边形的顶点。 |
异常
| 异常 | 条件 |
|---|
| ArgumentNullException | brush 为 null。-or- points 为 null。 |
另请参见
FillPolygon(Brush, Point[], FillMode)
使用指定的填充模式,填充由 Point 结构指定的点数组定义的多边形内部。
public void FillPolygon(Brush brush, Point[] points, FillMode fillMode)
| 参数 | 类型 | 描述 |
|---|
| brush | Brush | Brush,决定填充的特性。 |
| points | Point[] | 一个 Point 结构数组,表示要填充的多边形的顶点。 |
| fillMode | FillMode | FillMode 枚举的成员,决定填充的样式。 |
异常
| 异常 | 条件 |
|---|
| ArgumentNullException | brush 为 null。-or- points 为 null。 |
另请参见