xtd 0.2.0
Loading...
Searching...
No Matches

◆ add_line() [3/4]

void xtd::drawing::drawing_2d::graphics_path::add_line ( int32  x1,
int32  y1,
int32  x2,
int32  y2 
)

Appends a line segment to this xtd::drawing::drawing_2d::graphics_path.

Parameters
x1The x-coordinate of the starting point of the line.
y1The y-coordinate of the starting point of the line.
x2The x-coordinate of the endpoint of the line.
y2The y-coordinate of the endpoint of the line.
Remarks
This method adds the line segment defined by the specified points to the end of this xtd::drawing::drawing_2d::graphics_path. If there are previous lines or curves in the xtd::drawing::drawing_2d::graphics_path, a line segment is drawn to connect the last point in the path to the first point in the new line segment.