DrawLine
From SwinGame
DrawLine draws a line on the destination bitmap. The routine will draw a line onto the screen if you do not specify the destination bitmap to draw on. The colour of a line can be set by passing a colour value.
Where is it: SGSDK_GRAPHICS
Contents |
Languages
Pascal
Added in version 1.1:
procedure DrawLine(dest: Bitmap; theColour: Colour; line: LineSegment);
procedure DrawLine(theColour: Colour; line: LineSegment);
In version 1.0
procedure DrawLine(dest: Bitmap; theColour: Colour; xPosStart, yPosStart, xPosEnd, yPosEnd: Integer);
procedure DrawLine(theColour: Colour; xPosStart, yPosStart, xPosEnd, yPosEnd: Single);
C#
Added in version 1.1:
public void Graphics.DrawLine(Color theColor, LineSegment line);
public void Graphics.DrawLine(Bitmap dest, Color theColor, LineSegment line);
In version 1.0
public void Graphics.DrawLine(Color theColour, float xPosStart, float yPosStart, float xPosEnd, float yPosEnd);
public void Graphics.DrawLine(Bitmap dest, Color theColour, int xPosStart, int yPosStart, int xPosEnd, int yPosEnd);
Visual Basic .NET
Added in version 1.1:
Public Sub Graphics.DrawLine(ByVal dest As Bitmap, ByVal theColor As Color, ByVal line As LineSegment)
Public Sub Graphics.DrawLine(ByVal theColor As Color, ByVal line As LineSegment)
In version 1.0
Public Sub Graphics.DrawLine(ByVal dest As Bitmap, ByVal theColour As Color, ByVal xPosStart As Integer, ByVal yPosStart As Integer, ByVal xPosEnd As Integer, ByVal yPosEnd As Integer)
Public Sub Graphics.DrawLine(ByVal theColour As Color, ByVal xPosStart As Single, ByVal yPosStart As Single, ByVal xPosEnd As Single, ByVal yPosEnd As Single)
Visual Basic 6
Added in version 1.1:
Public Sub Graphics.DrawLine_Line(ByVal theColor As Long, ByVal line As LineSegment)
Public Sub Graphics.DrawLine_OnBitmap_Line(ByVal dest As Bitmap, ByVal theColor As Long, ByVal line As LineSegment)
In version 1.0:
Public Sub Graphics.DrawLine(ByVal theColour As Long, ByVal xPosStart As Single, ByVal yPosStart As Single, ByVal xPosEnd As Single, ByVal yPosEnd As Single)
Public Sub Graphics.DrawLine_OnBitmap(ByVal dest As Bitmap, ByVal theColour As Long, ByVal xPosStart As Long, ByVal yPosStart As Long, ByVal xPosEnd As Long, ByVal yPosEnd As Long)

