SaveToStream(Stream: IIOStream);
SaveToStream(Stream: System.IO.Stream);
Stream. The stream, which is used for saving.
The SaveToStream method saves the icon to stream.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Icon: IGxIcon;
Stream: IIOStream;
Begin
Icon := Self.Icon;
Icon.SaveToStream(Stream);
End Sub Button1OnClick;
After executing the example clicking the button saves the form icon to the Stream stream.
See also: