Create an image object from the specified file.
Syntax
[Foundation.Export("imageWithContentsOfFile:")]
[ObjCRuntime.ThreadSafe]
public static
UIImage FromFile (
string filename)
Parameters
- filename
- Contains the path of the image file to load.
Returns
A UIKit.UIImage object, or null if the file could not be found or the image cannot be created.
Remarks
Requirements
Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0