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:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.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