Click or drag to resize

IconUtilitiesGetLargestBitmap Method

Gets the largest bitmap in a list.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Bitmap GetLargestBitmap(
	this IEnumerable<Bitmap> bitmaps,
	bool disposeOthers = true
)

Parameters

bitmaps
Type: System.Collections.GenericIEnumerableBitmap
The list of bitmaps.
disposeOthers (Optional)
Type: SystemBoolean
if set to true other bitmaps are disposed.

Return Value

Type: Bitmap
A Bitmap instance or null if the list contains nothing.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableBitmap. 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).
See Also