Click or drag to resize

ShellUtilitiesGetImageForExtension Method

Gets a bitmap that represents an extension.

Namespace:  callback.ShellBoost.Core.Utilities
Assembly:  callback.CBFSShell (in callback.CBFSShell.dll) Version: 22.0.0.0
Syntax
C#
public static Bitmap GetImageForExtension(
	string extension,
	Size size,
	SIIGBF flags = SIIGBF.SIIGBF_RESIZETOFIT,
	bool throwOnError = true
)

Parameters

extension
Type: SystemString
The extension.
size
Type: System.DrawingSize
The size of the image to be received.
flags (Optional)
Type: callback.ShellBoost.Core.WindowsShellSIIGBF
Options that specify how the image will be extracted.
throwOnError (Optional)
Type: SystemBoolean
if set to true errors may be throw in case of Windows Shell errors.

Return Value

Type: Bitmap
A bitmap or null.
See Also