RhinoCommon API
DrawingUtilitiesIconFromResource Method (String, Size, Assembly) |
Load a Icon from an embedded resource.
Namespace: Rhino.UI
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Icon IconFromResource( string resourceName, Size size, Assembly assembly = null )
Public Shared Function IconFromResource ( resourceName As String, size As Size, Optional assembly As Assembly = Nothing ) As Icon
Parameters
- resourceName
- Type: SystemString
The case-sensitive name of the icon manifest resource being requested. - size
- Type: System.DrawingSize
The desired size of the icon. - assembly (Optional)
- Type: System.ReflectionAssembly
The assembly containing the manifest resource, will use the calling assembly if null.
Return Value
Type: IconThe Icon resource if found and loaded otherwise null.

Rhino for Windows
Supported in: 6.8