TBitmap.LoadFromFile

Applies to TestComplete 14.10, last modified on June 5, 2019

Loads the image from the specified file.

Declaration

TBitmapObj.LoadFromFile(FileName) Parameters
TBitmapObj     A TBitmap object  
FileName [in] Required String
Result     none  

Description

The TBitmap.LoadFromFile method lets you load the image from the specified file into the given TBitmap 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 (note that if an ICO file contains several images, TestComplete uploads only one of them - the one of the largest size and with the greatest color depth).

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

TBitmap.SaveToFile

Highlight search results