FromFile(FileName: String): IGxImage;
FileName - path and name of the file that contains an image.
The FromFile method returns an object that contains the image obtained from the file. The file path and name are passed by the FileName parameter.
Sub Main;
Var
Image: IGxImage;
Begin
Image:=GxImage.FromFile("c:\1.bmp");
End Sub Main;
After executing the example the Image variable contains the image from the c:\1.bmp file.
See also: