IGxImageClass.FromFile

Syntax

FromFile(FileName: String): IGxImage;

Parameters

FileName - path and name of the file that contains an image.

Description

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.

Example

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:

IGxImageClass