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

◆ draw_line() [4/4]

void xtd::drawing::graphics::draw_line ( const xtd::drawing::pen pen,
float  x1,
float  y1,
float  x2,
float  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.