Exemplo n.º 1
0
 /// <summary>
 /// Draws a line connecting two PointF structures.
 /// </summary>
 /// <param name="pen">Pen object that determines the color, width, and style of the line.</param>
 /// <param name="pt1">PointF structure that represents the first point to connect.</param>
 /// <param name="pt2">PointF structure that represents the second point to connect.</param>
 internal void DrawLine(
     Pen pen,
     PointF pt1,
     PointF pt2
     )
 {
     RenderingObject.DrawLine(pen, pt1, pt2);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Draws a line connecting the two points specified by coordinate pairs.
 /// </summary>
 /// <param name="pen">Pen object that determines the color, width, and style of the line.</param>
 /// <param name="x1">x-coordinate of the first point.</param>
 /// <param name="y1">y-coordinate of the first point.</param>
 /// <param name="x2">x-coordinate of the second point.</param>
 /// <param name="y2">y-coordinate of the second point.</param>
 internal void DrawLine(
     Pen pen,
     float x1,
     float y1,
     float x2,
     float y2
     )
 {
     RenderingObject.DrawLine(pen, x1, y1, x2, y2);
 }