iOS Guides | Samples

MonoTouch.UIKit.UIImage.LoadFromData Method

Will create an image from data that originated from a file or was programmatically created.

Syntax

[MonoTouch.Foundation.Export("imageWithData:")]
[MonoTouch.ObjCRuntime.ThreadSafe]
public static UIImage LoadFromData (NSData data)

Parameters

data
The image data to create the image from.

Returns

A new image object, or null if the image could not 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