CreateFromStream(Stream: IIOStream);
Stream. The stream, from which a new metafile is created.
The CreateFromStream constructor creates a new metafile from the specified data stream.
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: