Click or drag to resize

IconFrameFromResource Method

Creates an instance of the IconFrame from an embedded resource.

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

Parameters

scale
Type: SystemSingle
Scale of logical to physical pixels.
resourceName
Type: SystemString
Name of the embedded resource to load.
assembly (Optional)
Type: System.ReflectionAssembly
Assembly to load the embedded resource from, or null to use the calling assembly.

Return Value

Type: IconFrame
A new instance.
See Also