Icon Constructor (Stream^, Size)
.NET Framework (current version)
Initializes a new instance of the Icon class of the specified size from the specified stream.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- stream
-
Type:
System.IO::Stream^
The stream that contains the icon data.
- size
-
Type:
System.Drawing::Size
The desired size of the icon.
| Exception | Condition |
|---|---|
| ArgumentException | The stream is null or does not contain image data. |
.NET Framework
Available since 2.0
Available since 2.0
Show: