Previous: 4.37.2.88. PutSprite procedure To the Table of Contents Next: 4.37.2.90. ReleasePageDC procedure
4.37.2.88. PutSprite procedure Table of Contents 4.37.2.90. ReleasePageDC procedure

- 4.37.2.89. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.89. Rectangle procedure


4.37.2.89. Rectangle procedure

Targets: MS-DOS, Win32


Graph Unit

Draws a rectangle, using the current line style and color.

Declaration:
procedure Rectangle(X1, Y1, X2, Y2: Longint);
procedure Rectangle(X1, Y1, X2, Y2: Longint; Color: DWORD);
Remarks:
(X1, Y1) defines the upper left corner of the rectangle, and (X2, Y2) defines the lower right corner. The rectangle can cross the screen borders.

Draws the rectangle in the current line style and color, as set by SetLineStyle and SetColor.

Use SetWriteMode to determine whether the rectangle is copied or XOR'ed to the screen.


Previous: 4.37.2.88. PutSprite procedure To the Table of Contents Next: 4.37.2.90. ReleasePageDC procedure
4.37.2.88. PutSprite procedure Table of Contents 4.37.2.90. ReleasePageDC procedure

- 4.37.2.89. -