IconsFromStream(Stream) Method

Loads an Icon from the specified stream.

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 9.0.0
C#
public static Icon? FromStream(
	Stream stream
)

Parameters

stream  Stream
The stream to load the icon from.

Return Value

Icon
The Icon loaded from the stream, or , if stream contains an empty icon header.

Remarks

The result Icon is compatible with Windows XP if the method is executed in a Windows XP environment.

See Also