VBScript LoadPicture Function

Definition and Usage

The LoadPicture function can return a picture object.

The graphic formats that can be recognized by the LoadPicture function are:

  • bitmap file (.bmp)
  • icon file (.ico)
  • run-length encoded file (.rle)
  • metafile file (.wmf)
  • enhanced meta file (.emf)
  • GIF file (.gif)
  • JPEG file (.jpg)

Note:This function is only for 32-bit platforms.

Syntax

LoadPicture(picturename)
Parameters Description
picturename Required. The filename of the image file to be loaded.