The following functions represent an interface for exporting graphics to a ``foreign'' X window. In particular, the interface can be used to draw into a window owned by a Tk script. This interface is not available on Microsoft Windows.
| Bits | Effect |
|---|---|
| 0-1 | 00-no rotation, 01-90, 10-180, 11-270 |
| 2 | mirror y after rotation |
| 3 | mirror x after rotation and mirror y |
| 4 | shift rotation to 45, 135, 225, 315 |
| 5-6 | horiz justification 00,11 left, 01 center, 10 right |
| 7-8 | vert justification 00,11 bottom, 01 center, 10 top |
Upon success, 1 is returned, otherwise 0 is returned.
| 0 | normal drawing |
| 1 | XOR |
| 2 | OR |
| 3 | AND-inverted |
Modes 2,3 are probably not useful on other than 8-plane displays. The function returns 1 on success, 0 otherwise.