GxRectangleTransformImage.CreateFromStream

Syntax

CreateFromStream(Stream: IIOStream);

Parameters

Stream. The stream that contains the image.

Description

The CreateFromStream constructor creates a new image with fixed areas from the stream contents passed by the Stream parameter.

Example

Function GetTransformImageFromStream(ImgStream: IIOStream; MLeft: Double; MTop: Double; MRight: Double; MBottom: Double): IGxRectangleTransformImage;
Var
    OutImg: IGxRectangleTransformImage;
    Margins: IGxMargins;
Begin
    If ImgStream.Size <> 0 Then
        OutImg := New GxRectangleTransformImage.CreateFromStream(ImgStream);
        Margins := OutImg.Margins;
        Margins.Bottom := MBottom;
        Margins.Left := MLeft;
        Margins.Right := MRight;
        Margins.Top := MTop;
        Return OutImg;
    Else
        Return Null;
    End If;
End Function GetTransformImageFromStream;

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

See also:

GxRectangleTransformImage