Click or drag to resize

CursorFromResource Method (String, Type)

Loads a bitmap from a resource in the same assembly as the specified type

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public static Cursor 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: Cursor
The bitmap instance.
See Also