System::Drawing::Drawing2D::GraphicsPath::AddLine 方法
内容
[
隐藏
]GraphicsPath::AddLine(const Point&, const Point&) method
将指定的直线添加到当前对象表示的路径中。
void System::Drawing::Drawing2D::GraphicsPath::AddLine(const Point &pt1, const Point &pt2)
| Parameter | Type | 描述 |
|---|---|---|
| pt1 | const Point& | 要添加的线的起始点 |
| pt2 | const Point& | 要添加的线的结束点 |
另见
- Class Point
- Class GraphicsPath
- Namespace System::Drawing::Drawing2D
- Library Aspose.Page for C++
GraphicsPath::AddLine(const PointF&, const PointF&) method
将指定的直线添加到当前对象表示的路径中。
void System::Drawing::Drawing2D::GraphicsPath::AddLine(const PointF &pt1, const PointF &pt2)
| Parameter | Type | 描述 |
|---|---|---|
| pt1 | const PointF& | 要添加的线的起始点 |
| pt2 | const PointF& | 要添加的线的结束点 |
另见
- Class PointF
- Class GraphicsPath
- Namespace System::Drawing::Drawing2D
- Library Aspose.Page for C++
GraphicsPath::AddLine(float, float, float, float) method
将指定的直线添加到当前对象表示的路径中。
void System::Drawing::Drawing2D::GraphicsPath::AddLine(float x1, float y1, float x2, float y2)
| Parameter | Type | 描述 |
|---|---|---|
| x1 | 单精度浮点数 | 要添加的线的起始点的 X 坐标 |
| y1 | 单精度浮点数 | 要添加的线的起始点的 Y 坐标 |
| x2 | 单精度浮点数 | 要添加的线的结束点的 X 坐标 |
| y2 | 单精度浮点数 | 要添加的线的结束点的 Y 坐标 |
另见
- Class GraphicsPath
- Namespace System::Drawing::Drawing2D
- Library Aspose.Page for C++
GraphicsPath::AddLine(int, int, int, int) method
将指定的直线添加到当前对象表示的路径中。
void System::Drawing::Drawing2D::GraphicsPath::AddLine(int x1, int y1, int x2, int y2)
| Parameter | Type | 描述 |
|---|---|---|
| x1 | int | 要添加的线的起始点的 X 坐标 |
| y1 | int | 要添加的线的起始点的 Y 坐标 |
| x2 | int | 要添加的线的结束点的 X 坐标 |
| y2 | int | 要添加的线的结束点的 Y 坐标 |
另见
- Class GraphicsPath
- Namespace System::Drawing::Drawing2D
- Library Aspose.Page for C++