DrawLine

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.

Pascal
Added in version 1.1:

In version 1.0

C#
Added in version 1.1:

In version 1.0

Visual Basic .NET
Added in version 1.1:

In version 1.0

Visual Basic 6
Added in version 1.1: In version 1.0:

Also See

 * Bitmap
 * DrawRectangle
 * FillRectangle