RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TPicture.LoadFromFile Method

Reads the file specified in Filename and loads the data into the TPicture object.

Pascal
procedure LoadFromFile(const Filename: string);
C++
__fastcall LoadFromFile(const AnsiString Filename);

Use LoadFromFile to read a picture from disk. The TGraphic class created is determined by the file extension of the file. If the file extension is not recognized an EInvalidGraphic exception is raised. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!