GetGraphMode (function) (Graph unit)

Language:
Русский
English

 GetGraphMode (function)     (Graph unit)


Returns the current graphics mode.

Declaration

 function GetGraphMode: Integer;

Target

Real, Protected

Remarks

GetGraphMode returns the current graphics mode set by InitGraph or SetGraphMode. The Mode value is an integer from 0 to 5, depending on the current driver. The following mode constants are defined:

 Graphics   Constant   Column
 driver      name       Value   x row     Palette   Pages

 CGA         CGAC0        0     320x200   C0          1
             CGAC1        1     320x200   C1          1
             CGAC2        2     320x200   C2          1
             CGAC3        3     320x200   C3          1
             CGAHi        4     640x200   2 color     1
 MCGA        MCGAC0       0     320x200   C0          1
             MCGAC1       1     320x200   C1          1
             MCGAC2       2     320x200   C2          1
             MCGAC3       3     320x200   C3          1
             MCGAMed      4     640x200   2 color     1
             MCGAHi       5     640x480   2 color     1
 EGA         EGALo        0     640x200   16 color    4
             EGAHi        1     640x350   16 color    2
 EGA64       EGA64Lo      0     640x200   16 color    1
             EGA64Hi      1     640x350   4 color     1
 EGA-MONO    EGAMonoHi    3     640x350   2 color     1*
             EGAMonoHi    3     640x350   2 color     2**
 HERC        HercMonoHi   0     720x348   2 color     2
 ATT400      ATT400C0     0     320x200   C0          1
             ATT400C1     1     320x200   C1          1
             ATT400C2     2     320x200   C2          1
             ATT400C3     3     320x200   C3          1
             ATT400Med    4     640x200   2 color     1
             ATT400Hi     5     640x400   2 color     1
 VGA         VGALo        0     640x200   16 color    2
             VGAMed       1     640x350   16 color    2
             VGAHi        2     640x480   16 color    1
 PC3270      PC3270Hi     0     720x350   2 color     1
 IBM8514     IBM8514Lo    0     640x480   256 color   1
 IBM8514     IBM8514Hi    0    1024x768   256 color   1

 * 64K on EGAMono card
 ** 256K on EGAMono card

Restrictions

Must be in graphics mode.

See Also

Sample Code

Тэги: GetGraphMode
| G+
Код для вставки: :: :: :: ::
Поделиться: // //