UIImage.FromBundle Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| FromBundle(String) | |
| FromBundle(String, NSBundle, UIImageConfiguration) | |
| FromBundle(String, NSBundle, UITraitCollection) | |
| FromBundle(String, NSBundle, Double, UIImageConfiguration) |
FromBundle(String)
[Foundation.Advice("This API is thread-safe only on 9.0 and later.")]
[Foundation.Export("imageNamed:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage? FromBundle(string name);
[Foundation.Export("imageNamed:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage? FromBundle(string name);
[<Foundation.Advice("This API is thread-safe only on 9.0 and later.")>]
[<Foundation.Export("imageNamed:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member FromBundle : string -> UIKit.UIImage
[<Foundation.Export("imageNamed:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member FromBundle : string -> UIKit.UIImage
Parameters
- name
- String
Returns
- Attributes
Applies to
FromBundle(String, NSBundle, UIImageConfiguration)
[Foundation.Export("imageNamed:inBundle:withConfiguration:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage? FromBundle(string name, Foundation.NSBundle? bundle, UIKit.UIImageConfiguration? configuration);
[<Foundation.Export("imageNamed:inBundle:withConfiguration:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member FromBundle : string * Foundation.NSBundle * UIKit.UIImageConfiguration -> UIKit.UIImage
Parameters
- name
- String
- bundle
- NSBundle
- configuration
- UIImageConfiguration
Returns
- Attributes
Applies to
FromBundle(String, NSBundle, UITraitCollection)
[Foundation.Advice("This API is thread-safe only on 9.0 and later.")]
[Foundation.Export("imageNamed:inBundle:compatibleWithTraitCollection:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage? FromBundle(string name, Foundation.NSBundle? bundle, UIKit.UITraitCollection? traitCollection);
[Foundation.Export("imageNamed:inBundle:compatibleWithTraitCollection:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
[ObjCRuntime.ThreadSafe]
public static UIKit.UIImage? FromBundle(string name, Foundation.NSBundle? bundle, UIKit.UITraitCollection? traitCollection);
[<Foundation.Advice("This API is thread-safe only on 9.0 and later.")>]
[<Foundation.Export("imageNamed:inBundle:compatibleWithTraitCollection:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member FromBundle : string * Foundation.NSBundle * UIKit.UITraitCollection -> UIKit.UIImage
[<Foundation.Export("imageNamed:inBundle:compatibleWithTraitCollection:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<ObjCRuntime.ThreadSafe>]
static member FromBundle : string * Foundation.NSBundle * UIKit.UITraitCollection -> UIKit.UIImage
Parameters
- name
- String
- bundle
- NSBundle
- traitCollection
- UITraitCollection
Returns
- Attributes
Applies to
FromBundle(String, NSBundle, Double, UIImageConfiguration)
[Foundation.Export("imageNamed:inBundle:variableValue:withConfiguration:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static UIKit.UIImage? FromBundle(string name, Foundation.NSBundle? bundle, double value, UIKit.UIImageConfiguration? configuration);
[<Foundation.Export("imageNamed:inBundle:variableValue:withConfiguration:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member FromBundle : string * Foundation.NSBundle * double * UIKit.UIImageConfiguration -> UIKit.UIImage
Parameters
- name
- String
- bundle
- NSBundle
- value
- Double
- configuration
- UIImageConfiguration
Returns
- Attributes