UIImage.FromFile(String) Method

Definition

Create an image object from the specified file.

[Foundation.Export("imageWithContentsOfFile:")]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage FromFile (string filename);
static member FromFile : string -> UIKit.UIImage

Parameters

filename
String

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.

Attributes

Remarks

This can be used from a background thread.

Applies to