TPicture.LoadFromFile

Applies to TestComplete 15.46, last modified on January 09, 2023

Loads the image from the specified file.

Declaration

TPictureObj.LoadFromFile(FileName) Parameters
TPictureObj     A TPicture object  
FileName [in] Required String
Result     none  

Description

The TPicture.LoadFromFile method lets you load the image from the specified file into the given TPicture object.

Parameters

The method has the following parameter:

FileName

The full path to the file from which you want to load the image.

Remarks

Currently, TestComplete supports images having one of the following formats:

  • BMP
  • JPEG
  • PNG
  • TIFF
  • GIF
  • ICO

TestComplete loads the image files of one of these formats regardless of the file extension. Images of an unsupported format cannot be loaded.

See Also

TPicture.SaveToFile

Highlight search results