Previous: 4.37.2.41. GetLogicalPage procedure To the Table of Contents Next: 4.37.2.43. GetMaxPage function
4.37.2.41. GetLogicalPage procedure Table of Contents 4.37.2.43. GetMaxPage function

- 4.37.2.42. -
Table of Contents
4. Standard Units
4.37. Graph - Graph unit
4.37.2. Graph Unit Procedures and Functions
4.37.2.42. GetMaxColor function


4.37.2.42. GetMaxColor function

Targets: MS-DOS, Win32


Graph Unit

Returns the highest color that can be passed to the SetColor procedure.

Declaration:
function GetMaxColor: DWORD;
Remarks:
For example, on a 256 colored VGA/SVGA mode, GetMaxColor always returns 255, which means that any call to SetColor with a value from 0..255 is valid. On an SVGA in high-color mode, GetMaxColor returns a value of 32767 or 65535, etc.


Previous: 4.37.2.41. GetLogicalPage procedure To the Table of Contents Next: 4.37.2.43. GetMaxPage function
4.37.2.41. GetLogicalPage procedure Table of Contents 4.37.2.43. GetMaxPage function

- 4.37.2.42. -