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

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

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

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

另见

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

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

void System::Drawing::Drawing2D::GraphicsPath::AddLine(const PointF &pt1, const PointF &pt2)
参数类型描述
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)
参数类型描述
x1float要添加的直线起始点的 X 坐标
y1float要添加的直线起始点的 Y 坐标
x2float要添加的直线结束点的 X 坐标
y2float要添加的直线结束点的 Y 坐标

另见

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

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

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

另见