iOS Guides | Samples

MonoTouch.UIKit.UIImage Constructor

Constructs a UIImage from the provided data, scaled by the scale factor.

Syntax

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

Parameters

data
Image data from a file or data that you programmatically create.
scale
A size of 1.0 produces an image that is full-size relative to the data.

Remarks

(More documentation for this node is coming)

This can be used from a background thread.

Requirements

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