LoadImage(text)

Loads image from the specified file.

To change the image dimensions, use the ImageWidth and ImageHeight properties.

You can load images in the following formats:

  • .bmp
  • .ico
  • .gif
  • .jpg
  • .wmf
  • .emf
Parameters

Text. Specifies the file name and path.

If the file is stored in the <Sage CRM installation folder>\WWWRoot\Img folder, you only need to specify the name of the file. If the file is stored in any other location, specify the full path to the file.

This parameter accepts a WideString value.

Examples
Copy
Graphic.LoadImage('Image.gif');

Loads image from a file named Image.gif located in the following folder on the Sage CRM server:
<Sage CRM installation folder>\WWWRoot\Img

Copy
Graphic.LoadImage('c:\\MyImages\\Image.gif');

Loads image from a file named Image.gif located in the C:\MyImages folder on the Sage CRM server.