Method DrawLine
DrawLine(Pen, PointD, PointD)
Draws a line connecting two points.
void DrawLine(Pen pen, PointD a, PointD b)
Parameters
penPenPen that determines the color, width, and style of the line.
aPointDPointD structure that represents the first point to connect.
bPointDPointD structure that represents the second point to connect.
Exceptions
- ArgumentNullException
penis null.
DrawLine(Pen, float, float, float, float)
Draws a line connecting two points.
void DrawLine(Pen pen, float x1, float y1, float x2, float y2)