CreateFromFile(FileName: String);
FileName. The path and the name of the file that contains the image.
The CreateFromFile constructor creates a new bitmap from the file specified in the FileName parameter.
Function GetBmpFromFile(FileName: String): IGxBitmap;
Var
Bmp: IGxBitmap;
Begin
If File.Exists(FileName) Then
Bmp := New GxBitmap.CreateFromFile(FileName);
Return Bmp;
Else
Return Null;
End If;
End Function GetBmpFromFile;
The function returns the image obtained from the file, path to which is specified as an input parameter.
See also: