Previous: GetLogicalPage procedure To the Table of Content Next: GetMaxPage function

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

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: GetLogicalPage procedure To the Table of Content Next: GetMaxPage function
GetLogicalPage procedure Table of Content GetMaxPage function

- 4.37.2.42 -