Previous: 4.37.2.96. SetAspectRatio procedure To the Table of Contents Next: 4.37.2.98. SetColor procedure
4.37.2.96. SetAspectRatio procedure Table of Contents 4.37.2.98. SetColor procedure

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


4.37.2.97. SetBkColor procedure

Targets: MS-DOS, Win32
Graph Unit

Sets the current background color, using the palette.

Declaration:
procedure SetBkColor(ColorNum: Word);
Remarks:
Background color must be in range range [0.. GetMaxColor], depending on the current graphics driver and the current graphics mode. The background color is used by the ClearViewPort and ClearPage procedures. SetBkColor does not change the first color in the active palette! To change it, use the GetRGBPalette and SetRGBPalette procedures.


Previous: 4.37.2.96. SetAspectRatio procedure To the Table of Contents Next: 4.37.2.98. SetColor procedure
4.37.2.96. SetAspectRatio procedure Table of Contents 4.37.2.98. SetColor procedure

- 4.37.2.97. -