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:
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 |
Get Practical IDL Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.