public static Icon? Combine(
Bitmap[]? images,
Color[]? transparentColors
)Public Shared Function Combine (
images As Bitmap(),
transparentColors As Color()
) As Iconpublic:
static Icon^ Combine(
array<Bitmap^>^ images,
array<Color>^ transparentColors
)static member Combine :
images : Bitmap[] *
transparentColors : Color[] -> Icon The elements of images may contain multiple icons.
This overload attempts to preserve the actual pixel format of the specified images, and just applies a transparency mask using the specified colors. To allow reducing the color depth losslessly, use the Combine(Bitmap) overload instead.
If an element of transparentColors is an opaque color and the corresponding item in images already has transparent pixels, then both the originally transparent pixels, and the ones that equal to the specified color will be transparent in the result.
The result Icon is compatible with Windows XP if the method is executed in a Windows XP environment.