Previous: Retrace procedure To the Table of Content Next: SetActivePage procedure

- 4.37.2.93 -
Standard Units
Graph Unit
Graph Unit Procedures and Functions

RGBColor procedure

Targets: MS-DOS, Win32
Graph Unit

Packs a set of RGB values into a color value for passing to the primitive drawing routines that is appropriate for the current video mode.

Declaration:
function RGBColor(R, G, B: Byte): DWORD;
Remarks:
This routine is intended to work with RGB video modes such as the 15, 16, 24 and 32 bits per pixel modes.

Use this routine to convert all color values to ensure that they work correctly on the different types of direct color video modes available.


Previous: Retrace procedure To the Table of Content Next: SetActivePage procedure
Retrace procedure Table of Content SetActivePage procedure

- 4.37.2.93 -