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

◆ draw_line() [3/4]

void xtd::drawing::graphics::draw_line ( const xtd::drawing::pen pen,
int32  x1,
int32  y1,
int32  x2,
int32  y2 
)

Draws a line connecting the two points specified by the coordinate pairs.

Parameters
penxtd::drawing::pen that determines the color, width, and style of the line.
x1The x-coordinate of the first point.
y1The y-coordinate of the first point.
x2The x-coordinate of the second point.
y2The y-coordinate of the second point.
Remarks
This method draws a line connecting the two points specified by the x1, y1, x2, and y2 parameters.