July 2001
Beginner to intermediate
508 pages
11h 44m
English
E Graphics Device Properties
The system variable !d.flags is a long scalar that contains information about the current graphics device. Bits are set in !d.flags depending on whether the current graphics device has certain properties, as shown in Table E.1.
To determine whether the current graphics device has a certain property, apply a bit-wise and to the bit in question. For example, to test whether the device supports widgets:
Table E.1 Meanings of bits in !d.flags.
| Bit | Value | Device property |
|---|---|---|
| 0 | 1 | Has scalable pixels |
| 1 | 2 | Can output text at an arbitrary angle using hardware |
| 2 | 4 | Can control line thickness using hardware |
Read now
Unlock full access