Previous: 4.37.2.92. Retrace procedure To the Table of Contents Next: 4.37.2.94. SetActivePage procedure
4.37.2.92. Retrace procedure Table of Contents 4.37.2.94. SetActivePage procedure

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


4.37.2.93. 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: 4.37.2.92. Retrace procedure To the Table of Contents Next: 4.37.2.94. SetActivePage procedure
4.37.2.92. Retrace procedure Table of Contents 4.37.2.94. SetActivePage procedure

- 4.37.2.93. -