System::Drawing::Drawing2D::GraphicsPath::AddLine 方法

GraphicsPath::AddLine(const Point&, const Point&) method

将指定的直线添加到当前对象表示的路径中。

void System::Drawing::Drawing2D::GraphicsPath::AddLine(const Point &pt1, const Point &pt2)
ParameterType描述
pt1const Point&要添加的线的起始点
pt2const Point&要添加的线的结束点

另见

GraphicsPath::AddLine(const PointF&, const PointF&) method

将指定的直线添加到当前对象表示的路径中。

void System::Drawing::Drawing2D::GraphicsPath::AddLine(const PointF &pt1, const PointF &pt2)
ParameterType描述
pt1const PointF&要添加的线的起始点
pt2const PointF&要添加的线的结束点

另见

GraphicsPath::AddLine(float, float, float, float) method

将指定的直线添加到当前对象表示的路径中。

void System::Drawing::Drawing2D::GraphicsPath::AddLine(float x1, float y1, float x2, float y2)
ParameterType描述
x1单精度浮点数要添加的线的起始点的 X 坐标
y1单精度浮点数要添加的线的起始点的 Y 坐标
x2单精度浮点数要添加的线的结束点的 X 坐标
y2单精度浮点数要添加的线的结束点的 Y 坐标

另见

GraphicsPath::AddLine(int, int, int, int) method

将指定的直线添加到当前对象表示的路径中。

void System::Drawing::Drawing2D::GraphicsPath::AddLine(int x1, int y1, int x2, int y2)
ParameterType描述
x1int要添加的线的起始点的 X 坐标
y1int要添加的线的起始点的 Y 坐标
x2int要添加的线的结束点的 X 坐标
y2int要添加的线的结束点的 Y 坐标

另见