Icon Constructor (Stream, Size)

 

Initializes a new instance of the Icon class of the specified size from the specified stream.

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

public Icon(
	Stream stream,
	Size size
)

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