Click or drag to resize

IconFromResource Method (String, Assembly)

Loads an icon from an embedded resource of the specified assembly

Namespace:  Eto.Drawing
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Icon FromResource(
	string resourceName,
	Assembly assembly = null
)

Parameters

resourceName
Type: SystemString
Fully qualified name of the resource to load. E.g. "MyProject.SomeFolder.YourFile.extension"
assembly (Optional)
Type: System.ReflectionAssembly
Assembly to load the resource from

Return Value

Type: Icon
A new instance of an Icon loaded with the contents of the specified resource
See Also