SETDEVICE procedure

Opens a graphical file and specifies the device number on basis of its extension (M.P. Boer & J.T.N.M. Thissen).


No options


Parameters

FILENAME = texts
Name of the graphical file including one of the possible extensions .hpg, .eps, .emf, .jpg, .tif, .png, .gmf or .bmp; must be set

NUMBER = scalars
Saves the device number corresponding to the graphical format specified by parameter FILENAME


Description

SETDEVICE opens a graphical file and specifies the device number on the basis of the extension of the given filename. The table below shows the correspondence between extension and device number.


Extension

Device number

Explanation

.hpg

4

HPGL file

.eps

5

Encapsulated PostScript file

.emf

6

Windows Enhanced Metafile

.jpg

7

JPEG file

.tif

8

TIFF file

.png

9

Portable Network Graphics file

.gmf

10

GenStat Metafile

.bmp

11

Windows Bitmap file


Options: none.

Parameters: FILENAME, NUMBER.