Draws a line.
Namespace:
Aurigma.GraphicsMill.Drawing
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Public Sub DrawLine ( _
pen As Pen, _
x1 As Integer, _
y1 As Integer, _
x2 As Integer, _
y2 As Integer _
)
Type: Aurigma.GraphicsMill.Drawing.Pen
Pen object which is used to draw a line.Type: System.Int32
X-coordinate of the start point of the line.Type: System.Int32
Y-coordinate of the start point of the line.Type: System.Int32
X-coordinate of the end point of the line.Type: System.Int32
Y-coordinate of the end point of the line.All the coordinates are measured in units specified with Unit property.
Dim gdiGraphics As Aurigma.GraphicsMill.Drawing.GdiGraphics = _
Aurigma.GraphicsMill.Drawing.GdiGraphics.FromHwnd(PictureBox1.Handle)
Dim pen As New Aurigma.GraphicsMill.Drawing.Pen(Aurigma.GraphicsMill.RgbColor.Red, 1)
gdiGraphics.DrawLine(pen, 50, 0, 50, 100)
Aurigma.GraphicsMill.Drawing.GdiGraphics gdiGraphics =
Aurigma.GraphicsMill.Drawing.GdiGraphics.FromHwnd(PictureBox1.Handle);
Aurigma.GraphicsMill.Drawing.Pen pen =
new Aurigma.GraphicsMill.Drawing.Pen(Aurigma.GraphicsMill.RgbColor.Red, 1);
gdiGraphics.DrawLine(pen, 50, 0, 50, 100);