IconsFromStream(Stream, Boolean) Method
Loads an
Icon from the specified
stream.
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 8.1.0
public static Icon? FromStream(
Stream stream,
bool forceUncompressedResult
)
Public Shared Function FromStream (
stream As Stream,
forceUncompressedResult As Boolean
) As Icon
public:
static Icon^ FromStream(
Stream^ stream,
bool forceUncompressedResult
)
static member FromStream :
stream : Stream *
forceUncompressedResult : bool -> Icon
- 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.
IconThe
Icon loaded from the
stream, or
, if
stream contains an empty icon header.