Graphics.DrawLine
Contents
[
Hide
]DrawLine(Pen, Point, Point)
Draws a line connecting two Point structures.
public void DrawLine(Pen pen, Point pt1, Point pt2)
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
pt1 | Point | Point structure that represents the first point to connect. |
pt2 | Point | Point structure that represents the second point to connect. |
See Also
- class Pen
- struct Point
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawLine(Pen, int, int, int, int)
Draws a line connecting the two points specified by the coordinate pairs.
public void DrawLine(Pen pen, int x1, int y1, int x2, int y2)
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
x1 | Int32 | The x-coordinate of the first point. |
y1 | Int32 | The y-coordinate of the first point. |
x2 | Int32 | The x-coordinate of the second point. |
y2 | Int32 | The y-coordinate of the second point. |
See Also
- class Pen
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawLine(Pen, PointF, PointF)
Draws a line connecting two PointF structures.
public void DrawLine(Pen pen, PointF pt1, PointF pt2)
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
pt1 | PointF | PointF structure that represents the first point to connect. |
pt2 | PointF | PointF structure that represents the second point to connect. |
See Also
- class Pen
- struct PointF
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common
DrawLine(Pen, float, float, float, float)
Draws a line connecting the two points specified by the coordinate pairs.
public void DrawLine(Pen pen, float x1, float y1, float x2, float y2)
Parameter | Type | Description |
---|---|---|
pen | Pen | Pen that determines the color, width, and style of the line. |
x1 | Single | The x-coordinate of the first point. |
y1 | Single | The y-coordinate of the first point. |
x2 | Single | The x-coordinate of the second point. |
y2 | Single | The y-coordinate of the second point. |
See Also
- class Pen
- class Graphics
- namespace Aspose.Drawing
- assembly Aspose.Drawing.Common