iOS Guides | Samples

MonoTouch.UIKit.UIImage.FromResource Method

Loads an image from a resource embedded in the assembly.

Syntax

public static UIImage FromResource (Assembly assembly, String name)

Parameters

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
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 Assembly.GetCallingAssembly.

This can be used from a background thread.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0