Click or drag to resize

BitmapFromResource Method (String, Assembly)

Loads a bitmap from the resource in the specified or caller's assembly

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

Parameters

resourceName
Type: SystemString
Name of the resource in the caller's assembly to load. E.g. "MyProject.SomeFolder.YourFile.extension"
assembly (Optional)
Type: System.ReflectionAssembly
Assembly to load the resource from, or null to use the caller's assembly

Return Value

Type: Bitmap
A new instance of a Bitmap loaded from the specified resource
See Also