UIImage.FromResource(Assembly, String) Method

Definition

Loads an image from a resource embedded in the assembly.

public static UIKit.UIImage FromResource (System.Reflection.Assembly assembly, string name);
static member FromResource : System.Reflection.Assembly * string -> UIKit.UIImage

Parameters

assembly
Assembly

The resource is looked up in this assembly. If the value is null, the resource is looked up in the assembly that calls this method.

name
String

The name of the embedded resource

Returns

The image loaded from the specified assembly.

Remarks

If the passed parameter for assembly is null, then the resource is looked up in the calling assembly using M:System.Reflection.Assembly.GetCallingAssembly*.

This can be used from a background thread.

Applies to