IMAGE Function

Displays an image in the graphics output from the current (X,Y) coordinates to the (X, Y) coordinates that are associated with the IMGPATH variable.



Associated Variables

specifies the text that defines the link for drill-down.
IMGPATH= 'external-file'
specifies the image file to be displayed in the graphics output. The syntax of external file specifications varies across operating environments.
Note:Copying and pasting the image works only if an absolute path is specified instead of a relative path, or if the file into which the image is being pasted is opened from the directory to which the image is relative.
specifies how the image is to be applied to fill the specified area of the graphics output. The default value of TILE replicates the image to fill the area. The FIT value stretches a single instance of the image to fill the area.
specifies the horizontal coordinate that determines the size of the image displayed in the graphics output.
specifies the vertical coordinate that determines the size of the image displayed in the graphics output.
specifies the depth coordinate for 3–D output.
specifies the coordinate system for the Z variable. See ZSYS Variable for an explanation of coordinate-system.


The following example shows how the IMAGE function adds a single stretched instance of an image to the graphics output, beginning at the current coordinates and ending at the specified coordinates:
x=10; y=5; function="move"; output;
x=35; y=15; imgpath="/images/gifs/picture.gif";
function="image"; output;
For a list of the file types that you can use, see Image File Types Supported by SAS/GRAPH.