CreateFromFile(FileName: String);
FileName. The path and the name of the file that contains the image.
The CreateFromFile constructor creates a new image with fixed areas from the file specified in the FileName parameter.
Function GetTransformImageFromFile(FileName: String; MLeft: Double; MTop: Double; MRight: Double; MBottom: Double): IGxRectangleTransformImage;
Var
OutImg: IGxRectangleTransformImage;
Margins: IGxMargins;
Begin
If File.Exists(FileName) Then
OutImg := New GxRectangleTransformImage.CreateFromFile(FileName);
Margins := OutImg.Margins;
Margins.Bottom := MBottom;
Margins.Left := MLeft;
Margins.Right := MRight;
Margins.Top := MTop;
Return OutImg;
Else
Return Null;
End If;
End Function GetTransformImageFromFile;
The function returns the image obtained from the clipboard. The image is transformed by entering fixed areas, which sizes are passed as input parameters.
See also: