Share via


UIImage.LoadFromData Method

Definition

Overloads

Name Description
LoadFromData(NSData)
LoadFromData(NSData, NFloat)

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

LoadFromData(NSData)

[Foundation.Export("imageWithData:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage? LoadFromData(Foundation.NSData data);
[<Foundation.Export("imageWithData:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member LoadFromData : Foundation.NSData -> UIKit.UIImage

Parameters

data
NSData

Returns

Attributes

Applies to

LoadFromData(NSData, NFloat)

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

[Foundation.Export("imageWithData:scale:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage? LoadFromData(Foundation.NSData data, System.Runtime.InteropServices.NFloat scale);
[<Foundation.Export("imageWithData:scale:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member LoadFromData : Foundation.NSData * System.Runtime.InteropServices.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