IconsFromStream(Stream, Boolean) Method

Loads an Icon from the specified stream.

Definition

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

Parameters

stream  Stream
The stream to load the icon from.
forceUncompressedResult  Boolean
to force returning an uncompressed icon; to allow PNG compression, which is supported by Windows Vista and above.

Return Value

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

See Also