Share via


INImage.FromImage Method

Definition

Overloads

Name Description
FromImage(NSImage)
FromImage(CGImage)

Static factory method to create an INImage from a CGImage.

FromImage(UIImage)

Static factory method to create an INImage from a UIImage.

FromImage(NSImage)

[Foundation.Export("imageWithNSImage:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Intents.INImage FromImage(AppKit.NSImage image);
[<Foundation.Export("imageWithNSImage:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromImage : AppKit.NSImage -> Intents.INImage

Parameters

image
NSImage

Returns

Attributes

Applies to

FromImage(CGImage)

Static factory method to create an INImage from a CGImage.

[Foundation.Export("imageWithCGImage:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Intents.INImage FromImage(CoreGraphics.CGImage image);
[<Foundation.Export("imageWithCGImage:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromImage : CoreGraphics.CGImage -> Intents.INImage

Parameters

image
CGImage

Returns

Attributes

Applies to

FromImage(UIImage)

Static factory method to create an INImage from a UIImage.

[Foundation.Export("imageWithUIImage:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Intents.INImage FromImage(UIKit.UIImage image);
[<Foundation.Export("imageWithUIImage:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromImage : UIKit.UIImage -> Intents.INImage

Parameters

image
UIImage

Returns

Attributes

Applies to