Description:
Loads an icon from an embedded resource and converts it to a bitmap. If the icon is not a standard size, this function scales down a larger image.
Syntax:
public static Bitmap LoadBitmapWithScaleDown(
String iconName,
Int32 sizeDesired,
Assembly assembly
)
String iconName,
Int32 sizeDesired,
Assembly assembly
)
Parameters:
- iconName
- Type: System.String
- The case-sensitive name of the icon manifest resource being requested.
- sizeDesired
- Type: System.Int32
- The desired size, in pixels, of the icon.
- assembly
- Type: System.Reflection.Assembly
- The assembly containing the manifest resource.
Returns:
Type: Bitmap
The icon converted to a bitmap if successful, None otherwise.
Available since:
6.0