GxImage.CreateFromStream

Syntax

CreateFromStream(Stream: IIOStream);

Parameters

Stream. The stream that contains the graphic image.

Description

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

Example

Function GetImageFromStream(ImgStream: IIOStream): IGxImage;
Var
    Img: IGxImage;
Begin
    If ImgStream.Size <> 0 Then
        Img := New GxImage.CreateFromStream(ImgStream);
        Return Img;
    Else
        Return Null;
    End If;
End Function GetImageFromStream;

The function returns the image obtained from the stream specified as an input parameter.

See also:

GxImage