Icon Constructor (Stream^, Int32, Int32)

 

Initializes a new instance of the Icon class from the specified data stream and with the specified width and height.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public:
Icon(
	Stream^ stream,
	int width,
	int height
)

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
Return to top
Show: