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:

image

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

Get Practical IDL Programming now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.