UIImage.FromResource(Assembly, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.