iOS Guides | Samples

MonoTouch.UIKit.UIImage.FromImage Method

Factory method to create a UIImage from a Core Graphics CGImage, with the specified scale and orientation.

Syntax

[MonoTouch.Foundation.Export("imageWithCGImage:scale:orientation:")]
[MonoTouch.ObjCRuntime.ThreadSafe]
public static UIImage FromImage (CGImage image, Single scale, UIImageOrientation orientation)

Parameters

image
Contains the Quartz image to use.
scale
Scale factor to be used when interpreting the image data.
orientation
Orientation for the image 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