Click or drag to resize

ImageUtilitiesSaveAsIcon Method (Image, Stream, IEnumerableInt32)

Saves an image to an icon stream.

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static void SaveAsIcon(
	Image image,
	Stream stream,
	IEnumerable<int> sizes
)

Parameters

image
Type: System.DrawingImage
The image.
stream
Type: System.IOStream
The target icon stream.
sizes
Type: System.Collections.GenericIEnumerableInt32
The list of icon sizes to include in the target icon file.
Exceptions
ExceptionCondition
ArgumentNullExceptionstream is null.
ArgumentExceptionsizes are invalid.
See Also