public Path AddLine(
float x1,
float y1,
float x2,
float y2
)
Public Function AddLine (
x1 As Single,
y1 As Single,
x2 As Single,
y2 As Single
) As Path
public:
Path^ AddLine(
float x1,
float y1,
float x2,
float y2
)
member AddLine :
x1 : float32 *
y1 : float32 *
x2 : float32 *
y2 : float32 -> Path
If the current figure is not empty or closed, the added line will be connected to the last point of the figure.
When the Path is filled, a single line is not rendered. When the Path is drawn, the right/bottom values of the coordinates are inclusive, so even a single pixel line is rendered.
The parameters are not validated here but in the moment of drawing the coordinates of the possibly transformed path points must fall into the bounds of an int value; otherwise, an OverflowException will be thrown.