DrawRectangle

DrawRectangle draws a rectangle on the destination bitmap. The routine will draw onto the screen if you do not specify the destination bitmap to draw on. You can also draw a filled rectangle by using this routine. The colour of a rectangle 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
 * DrawRectangleOnScreen
 * FillRectangle
 * FillRectangleOnScreen