IconsCombine(IEnumerableBitmap) Method

Combines the provided images into a multi-resolution Icon instance.

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 10.1.0
C#
public static Icon? Combine(
	IEnumerable<Bitmap>? images
)

Parameters

images  IEnumerableBitmap
The images to be added to the result icon. Images can be non-squared ones. Transparency is determined automatically by image format.

Return Value

Icon
An Icon instance that contains every image of the source images.

Remarks

The elements of images may contain multiple icons.

This overload attempts to reduce the color depth of the added icon images losslessly if possible. To prevent that, use the Combine(Bitmap, Color) overload instead.

The result Icon is compatible with Windows XP if the method is executed in a Windows XP environment.

See Also