GxIcon.CreateFromStream

Syntax

CreateFromStream(Stream: IIOStream);

Parameters

Stream. The stream, from which the icon is loaded.

Description

The CreateFromStream constructor creates an icon from the stream.

Example

Function GetIconFromStream(IconStream: IIOStream): IGxIcon;
Var
    OutIcon: IGxIcon;
Begin
    If IconStream.Size <> 0 Then
        OutIcon := New GxIcon.CreateFromStream(IconStream);
        Return OutIcon;
    Else
        Return Null;
    End If;
End Function GetIconFromStream;

This function returns the icon obtained from the stream.

See also:

GxIcon