Click or drag to resize

DrawingUtilitiesBitmapFromIconResource Method (String, Assembly)

Load a Icon from an embedded resource and convert it to a bitmap of the specified size. Will look for a icon image that is greater than or equal to the requested size, if all images are less than the requested size the largest image will be used.

Namespace:  Rhino.UI
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.12
Syntax
public static Bitmap BitmapFromIconResource(
	string resourceName,
	Assembly assembly = null
)

Parameters

resourceName
Type: SystemString

[Missing <param name="resourceName"/> documentation for "M:Rhino.UI.DrawingUtilities.BitmapFromIconResource(System.String,System.Reflection.Assembly)"]

assembly (Optional)
Type: System.ReflectionAssembly
The assembly containing the manifest resource, will use the calling assembly if null.

Return Value

Type: Bitmap

[Missing <returns> documentation for "M:Rhino.UI.DrawingUtilities.BitmapFromIconResource(System.String,System.Reflection.Assembly)"]

See Also