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
)
Public Shared Function FromResource (
scale As Single,
resourceName As String,
Optional assembly As Assembly = Nothing
) As IconFrame
static member FromResource :
scale : float32 *
resourceName : string *
?assembly : Assembly
(* Defaults:
let _assembly = defaultArg assembly null
*)
-> IconFrame
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:
IconFrameA new instance.
See Also