Edytuj

Udostępnij za pośrednictwem


UIImage.LoadFromData Method

Definition

Overloads

LoadFromData(NSData)

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

LoadFromData(NSData, nfloat)

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

LoadFromData(NSData)

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

[Foundation.Export("imageWithData:")]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage LoadFromData (Foundation.NSData data);
static member LoadFromData : Foundation.NSData -> UIKit.UIImage

Parameters

data
NSData

The image data to create the image from.

Returns

A new image object, or null if the image could not be created.

Attributes

Remarks

This can be used from a background thread.

Applies to

LoadFromData(NSData, nfloat)

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

[Foundation.Export("imageWithData:scale:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage LoadFromData (Foundation.NSData data, nfloat scale);
static member LoadFromData : Foundation.NSData * nfloat -> UIKit.UIImage

Parameters

data
NSData

The image data to create the image from.

scale
nfloat

The scaled image.

Returns

Attributes

Remarks

This can be used from a background thread.

Applies to