IconExtensionsCombine(Icon, Bitmap, Color) Method
Combines an
Icon instance with the provided
image into a multi-resolution
Icon instance.
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 10.0.0-rc.1
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
- icon Icon
- The icon to combine with other images.
- image Bitmap
- The image to be added to the icon. Can be a non-squared one.
- transparentColor Color
- A color that represents the transparent color in image.
Icon
An
Icon instance that contains the source
image.
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).
Both icon and image may contain multiple icons.
The result Icon is compatible with Windows XP if the method is executed in a Windows XP environment.