BitmapFromResource Method (String, Type) |
Loads a bitmap 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 Bitmap FromResource(
string resourceName,
Type type
)
Public Shared Function FromResource (
resourceName As String,
type As Type
) As Bitmap
static member FromResource :
resourceName : string *
type : Type -> Bitmap
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:
BitmapThe bitmap instance.
See Also