RhinoCommon API
DrawingUtilitiesImageFromResource Method |
Load a Image from an embedded resource.
Namespace: Rhino.UI
Assembly: RhinoCommon (in RhinoCommon.dll)

public static Image ImageFromResource( string resourceName, Assembly assembly = null )
Public Shared Function ImageFromResource ( resourceName As String, Optional assembly As Assembly = Nothing ) As Image
Parameters
- resourceName
- Type: SystemString
The case-sensitive name of the image manifest resource being requested. - assembly (Optional)
- Type: System.ReflectionAssembly
The assembly containing the manifest resource, will use the calling assembly if null.
Return Value
Type: ImageThe Image resource if found and loaded otherwise null.

Rhino for Windows
Supported in: 6.8