Click or drag to resize

IconFromResource Method (String, Type)

Loads an icon from a resource in the same assembly as the specified type

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

Parameters

resourceName
Type: SystemString
Full name of the resource in the type's assembly E.g. "MyProject.SomeFolder.YourFile.extension"
type
Type: SystemType
Type of the assembly to get the resource.

Return Value

Type: Icon
The icon instance.
See Also