GxRectangleTransformImage.CreateFromClipboard

Fore Syntax

CreateFromClipboard;

Fore.NET Syntax

CreateFromClipboard();

Description

The CreateFromClipboard constructor creates an image with fixed areas from the clipboard.

Fore Example

Function GetTransformImage(MLeft: Double; MTop: Double; MRight: Double; MBottom: Double): IGxRectangleTransformImage;
Var
    OutImg: IGxRectangleTransformImage;
    Margins: IGxMargins;
Begin
    OutImg := New GxRectangleTransformImage.CreateFromClipboard;
    Margins := OutImg.Margins;
    Margins.Bottom := MBottom;
    Margins.Left := MLeft;
    Margins.Right := MRight;
    Margins.Top := MTop;
    Return OutImg;
End Function GetTransformImage;

This function returns the image obtained from the clipboard. The image is transformed by entering fixed areas, which sizes are passed as input parameters.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetTransformImage(MLeft: Double; MTop: Double; MRight: Double; MBottom: Double): GxRectangleTransformImage;
Var
    OutImg: GxRectangleTransformImage = New GxRectangleTransformImageClass_2();
    Margins: IGxMargins;
Begin
    OutImg.CreateFromClipboard();
    Margins := OutImg.Margins;
    Margins.Bottom := MBottom;
    Margins.Left := MLeft;
    Margins.Right := MRight;
    Margins.Top := MTop;
    Return OutImg;
End Function;

This 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:

GxRectangleTransformImage