SetImage()

Syntax:

SetImage ( Filename )

Parameters:

Filename – The filename of the image. Filename should be the full pathname of the image file or the alias name given to the image in the Additional Resources tab of the page or Publication Properties dialog. This parameter is required.

Note:
Pathnames normally contain backslashes e.g. D:\IntroGraph.bmp, all single backslashes should be entered as double backslashes i.e. D:\\IntroGraph.bmp.

Remarks:

This function allows you to inset an Image for a specified object. There are two methods of using this function:

(i)  Specify an object name – in this method, the Image will be set on the Normal (i.e. default) Object State.

(ii) Specify a new object created with the GetAppearance function – in this method, the Image is set for the Object State of the object specified in the GetAppearance function.

Note:
The Image can be removed using the RemoveImage function or in the Image tab of the object’s Properties dialog.

image\Script_Button.jpgExamples