UIImage.FromFile(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.
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.