Click or drag to resize

IconUtilitiesSaveAsDll Method (Bitmap, String, IEnumerableInt32, Int32, Int32, Boolean)

Writes a bitmap as an Icon into a Win32 resource-only .DLL file. The icon may be saved in multiple sizes. The output format is always ARGB (32-bit).

Namespace:  ShellBoost.Core.Utilities
Assembly:  ShellBoost.Core (in ShellBoost.Core.dll) Version: 1.8.3.0
Syntax
C#
public static void SaveAsDll(
	Bitmap bitmap,
	string filePath,
	IEnumerable<int> sizes,
	int resourceId,
	int language,
	bool deleteExisting
)

Parameters

bitmap
Type: System.DrawingBitmap
The input bitmap.
filePath
Type: SystemString
The target .DLL file path.
sizes
Type: System.Collections.GenericIEnumerableInt32
The various sizes.
resourceId
Type: SystemInt32
The Win32 resource identifier.
language
Type: SystemInt32
The language. Use 1033 for en-US.
deleteExisting
Type: SystemBoolean
If set to true the target.DLL path will always be overwritten; otherwise, existing icons will be preserved.
See Also