public static Icon? Combine(
Bitmap[]? images,
Color[]? transparentColors,
bool forceUncompressedResult
)Public Shared Function Combine (
images As Bitmap(),
transparentColors As Color(),
forceUncompressedResult As Boolean
) As Iconpublic:
static Icon^ Combine(
array<Bitmap^>^ images,
array<Color>^ transparentColors,
bool forceUncompressedResult
)static member Combine :
images : Bitmap[] *
transparentColors : Color[] *
forceUncompressedResult : bool -> 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(Boolean, 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.