Click or drag to resize

ImageUtilitiesSaveAsIcon Method (Image, String, IEnumerableInt32)

Saves an image to an icon file.

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

Parameters

image
Type: System.DrawingImage
The image.
filePath
Type: SystemString
The target icon file path.
sizes
Type: System.Collections.GenericIEnumerableInt32
The list of icon sizes to include in the target icon file.
Exceptions
ExceptionCondition
ArgumentNullExceptionfilePath is null.
See Also