IconExtensions.Combine Method (Icon, Bitmap, Color)

KGy SOFT Drawing Libraries

IconExtensionsCombine Method (Icon, Bitmap, Color) 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: 4.6.1
Syntax

public static Icon Combine(
	this Icon icon,
	Bitmap image,
	Color transparentColor
)
<ExtensionAttribute>
Public Shared Function Combine ( 
	icon As Icon,
	image As Bitmap,
	transparentColor As Color
) As Icon
public:
[ExtensionAttribute]
static Icon^ Combine(
	Icon^ icon, 
	Bitmap^ image, 
	Color transparentColor
)
[<ExtensionAttribute>]
static member Combine : 
        icon : Icon * 
        image : Bitmap * 
        transparentColor : Color -> Icon 

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.

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

icon may already contain multiple icons.
See Also

Reference