RectangleF.FromPoints
RectangleF.FromPoints method
根据指定的两个点创建一个新的 Rectangle。创建的 Rectangle 的两个顶点将等于传入的 point1 和 point2。它们通常是相对的顶点。
public static RectangleF FromPoints(PointF point1, PointF point2)
| 参数 | 类型 | 描述 |
|---|---|---|
| point1 | PointF | 新矩形的第一个 Point。 |
| point2 | PointF | 新矩形的第二个 Point。 |
返回值
新创建的 Rectangle。
另请参见
- struct PointF
- struct RectangleF
- namespace Aspose.Imaging
- assembly Aspose.Imaging