The following functions provide an interface for plot and graphical file output. This is completely outside of the normal printing interface.
The filename, or the temporary file that is used if no filename is given, is not removed. The user must remove the file explicitly.
The Windows Native driver (Windows only) has slightly different behavior. For this driver, the command string must specify a printer name, and can not be null or empty. If filename is not null or empty, the output goes to that file and is not sent to the printer. Otherwise, the output goes to the printer.
Index | Name | Width | Height |
---|---|---|---|
0 | Letter | 612 | 792 |
1 | Legal | 612 | 1008 |
2 | Tabloid | 792 | 1224 |
3 | Ledger | 1224 | 792 |
4 | 10x14 | 720 | 1008 |
5 | 11x17 | 792 | 1224 |
6 | 12x18 | 864 | 1296 |
7 | 17x22 ``C'' | 1224 | 1584 |
8 | 18x24 | 1296 | 1728 |
9 | 22x34 ``D'' | 1584 | 2448 |
10 | 24x36 | 1728 | 2592 |
11 | 30x42 | 2160 | 3024 |
12 | 34x44 ``E'' | 2448 | 3168 |
13 | 36x48 | 2592 | 3456 |
14 | Statement | 396 | 612 |
15 | Executive | 540 | 720 |
16 | Folio | 612 | 936 |
17 | Quarto | 610 | 780 |
18 | A0 | 2384 | 3370 |
19 | A1 | 1684 | 2384 |
20 | A2 | 1190 | 1684 |
21 | A3 | 842 | 1190 |
22 | A4 | 595 | 842 |
23 | A5 | 420 | 595 |
24 | A6 | 298 | 420 |
25 | B0 | 2835 | 4008 |
26 | B1 | 2004 | 2835 |
27 | B2 | 1417 | 2004 |
28 | B3 | 1001 | 1417 |
29 | B4 | 729 | 1032 |
30 | B5 | 516 | 729 |
The returned value is the previous setting of the media index.