IconsCombine(Boolean, Bitmap) Method

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

Definition

Namespace: KGySoft.Drawing
Assembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 9.0.0
C#
public static Icon? Combine(
	bool forceUncompressedResult,
	params Bitmap[]? images
)

Parameters

forceUncompressedResult  Boolean
to force returning an uncompressed icon; to allow PNG compression, which is supported by Windows Vista and above.
images  Bitmap
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.

See Also