IMGPATH Variable

Specifies an image to be displayed from the current (X,Y) coordinates to the (X,Y) coordinates that are associated with this variable.

Type:character
Length:255

Table of Contents

Syntax

IMGPATH='external-file';

Variable Values

external-file

specifies the full path or full filename of an external image file. The format of the external file specification varies between operating environments. You can also specify the URL for a graphic on a web page. For example:

'https://mywebsite.com/myImage.png'
NoteCopying 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.

Details

The IMGPATH variable can be used only with the IMAGE Function.

The manner in which the specified image is to be displayed is determined by the STYLE Variable: Images.

For a list of the file types that you use, see Image File Types Supported by SAS/GRAPH.

Last updated: January 17, 2025