GxMetafile.CreateFromStream

Syntax

CreateFromStream(Stream: IIOStream);

Parameters

Stream. The stream, from which a new metafile is created.

Description

The CreateFromStream constructor creates a new metafile from the specified data stream.

Example

Function GetMetafileFromStream(MetafileStream: IIOStream): IGxMetafile;
Var
    Mtf: IGxMetafile;
Begin
    If MetafileStream.Size <> 0 Then
        Mtf := New GxMetafile.CreateFromStream(MetafileStream);
        Return Mtf;
    Else
        Return Null;
    End If;
End Function GetMetafileFromStream;

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

See also:

GxBitmap