IconExtensionsCombine Method (Icon, Bitmap, Color, Boolean)

KGy SOFT Drawing Libraries Help
Combines an Icon instance with the provided image into a multi-resolution Icon instance.

Namespace:  KGySoft.Drawing
Assembly:  KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 5.3.0
Syntax

public static Icon Combine(
	this Icon icon,
	Bitmap image,
	Color transparentColor,
	bool forceUncompressedResult
)

Parameters

icon
Type: System.DrawingIcon
The icon to combine with other images.
image
Type: System.DrawingBitmap
The image to be added to the icon. Can be a non-squared one.
transparentColor
Type: System.DrawingColor
A color that represents the transparent color in image.
forceUncompressedResult
Type: SystemBoolean
 to force returning an uncompressed icon;  to allow PNG compression, which is supported by Windows Vista and above.

Return Value

Type: Icon
An Icon instance that contains the source image.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Icon. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks

Both icon and image may contain multiple icons.

See Also

Reference