IconExtensionsCombine(Icon, Boolean, Bitmap) Method
Combines an
Icon instance with the provided
images into a multi-resolution
Icon instance.
Namespace: KGySoft.DrawingAssembly: KGySoft.Drawing (in KGySoft.Drawing.dll) Version: 7.1.0
public static Icon Combine(
this Icon icon,
bool forceUncompressedResult,
params Bitmap[]? images
)
<ExtensionAttribute>
Public Shared Function Combine (
icon As Icon,
forceUncompressedResult As Boolean,
ParamArray images As Bitmap()
) As Icon
public:
[ExtensionAttribute]
static Icon^ Combine(
Icon^ icon,
bool forceUncompressedResult,
... array<Bitmap^>^ images
)
[<ExtensionAttribute>]
static member Combine :
icon : Icon *
forceUncompressedResult : bool *
images : Bitmap[] -> Icon
- icon Icon
- The icon to combine with other images.
- forceUncompressedResult Boolean
- to force returning an uncompressed icon;
to allow PNG compression, which is supported by Windows Vista and above.
- images Bitmap
- The images to be added to the icon. Images can be non-squared ones.
Icon
An
Icon instance that contains every image of the source
images.
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).