DrawingUtilities.BitmapFromIconResource Method
Click or drag to resize

DrawingUtilitiesBitmapFromIconResource Method

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)
public static Bitmap BitmapFromIconResource(
	string resourceName,
	Size bitmapSize,
	Assembly assembly = null


Type: SystemString

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

Type: System.DrawingSize
Desired bitmap size
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.Drawing.Size,System.Reflection.Assembly)"]

Version Information

Rhino for Windows

Supported in: 6.7
See Also