GxBitmap.CreateFromStream

Syntax

CreateFromStream(Stream: IIOStream);

Parameters

Stream. The stream that contains a bitmap.

Description

The CreateFromStream constructor creates a new bitmap from the stream contents that is passed by the Stream parameter.

Example

Function GetBmpFromStream(BmpStream: IIOStream): IGxBitmap;
Var
    Bmp: IGxBitmap;
Begin
    If BmpStream.Size <> 0 Then
        Bmp := New GxBitmap.CreateFromStream(BmpStream);
        Return Bmp;
    Else
        Return Null;
    End If;
End Function GetBmpFromStream;

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

See also:

GxBitmap