Icon Constructor (Stream^, Int32, Int32)
.NET Framework (current version)
Initializes a new instance of the Icon class from the specified data stream and with the specified width and height.
Assembly: System.Drawing (in System.Drawing.dll)
Parameters
- stream
-
Type:
System.IO::Stream^
The data stream from which to load the icon.
- width
-
Type:
System::Int32
The width, in pixels, of the icon.
- height
-
Type:
System::Int32
The height, in pixels, of the icon.
| Exception | Condition |
|---|---|
| ArgumentException | The stream parameter is null. |
.NET Framework
Available since 1.1
Available since 1.1
Show: