iOS Guides | Samples

MonoTouch.UIKit.UIImage.FromFile Method

Create an image object from the specified file.

Syntax

[MonoTouch.Foundation.Export("imageWithContentsOfFile:")]
[MonoTouch.ObjCRuntime.ThreadSafe]
public static UIImage FromFile (String filename)

Parameters

filename
Contains the path of the image file to load.

Returns

A UIImage object, or null if the file could not be found or the image cannot be created.

Remarks

This can be used from a background thread.

Requirements

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