Applies to TestComplete 15.64, last modified on June 12, 2024

Loads the image from the specified file.


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


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


The method has the following parameter:


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


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


Highlight search results