Click or drag to resize

SystemImageListHelperGetIconAsBitmap Method (Int32, Size, Color, Boolean)

Returns the requested image of the system image list as bitmap.

Namespace:  Jam.Shell
Assembly:  ShellBrowser.Winforms (in ShellBrowser.Winforms.dll) Version: 6.3.1
Syntax
public Bitmap GetIconAsBitmap(
	int pIconNumber,
	Size pSize,
	Color pFrameColor,
	bool pStretch
)

Parameters

pIconNumber
Type: SystemInt32
The index of the requested icon in the system image list.
pSize
Type: System.DrawingSize
The size of the bitmap that should be returned.
pFrameColor
Type: System.DrawingColor
Specifies the color of the frame of the returned image. If null is passed, the images has no frame.
pStretch
Type: SystemBoolean
If true, the image from the image-list is scaled to fill the passed Size. If false, and the imagelist's dimensions are smaller than the passed size, the image is centered in the returned Bitmap.

Return Value

Type: Bitmap
A bitmap of the requested icon.
See Also