Parent Previous Next

Procedure LoadFromFile(AFilename : string) - Public

Call LoadFromFile to create a new image with the content of AFilename. If the current image is not empty, it is first emptied.

File must be of type Bitmap, JPEG, PNG,  GIF, icon, TIF, WDP or IPD. Use the OnLoadFile event to handle other formats.

There is built in support for GIF, PNG, TIF and WDP files only with Delphi versions 2009 and later.

See also
LoadFromClipboard procedure
LoadFromBitmap procedure
LoadFromStream procedure
LoadObjectFromFile procedure
SaveToFile procedure
LoadFromFiles procedure