iOS Guides | Samples

MonoTouch.UIKit.UIImage.LoadFromData Method

Factory method to create a UIImage from the provided data, at the specified scale.

Syntax

[MonoTouch.Foundation.Export("imageWithData:scale:")]
[MonoTouch.ObjCRuntime.Introduced(MonoTouch.ObjCRuntime.PlatformName.iOS, 6, 0, MonoTouch.ObjCRuntime.PlatformArchitecture.None, null)]
[MonoTouch.ObjCRuntime.ThreadSafe]
public static UIImage LoadFromData (NSData data, Single scale)

Parameters

data
The image data to create the image from.
scale
The scaled image.

Remarks

This can be used from a background thread.

Requirements

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