SKTexture.FromImage 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
FromImage(UIImage) |
Creates a texture from the specified image. |
FromImage(CGImage) |
Creates a texture from the specified image. |
FromImage(NSImage) |
FromImage(UIImage)
Creates a texture from the specified image.
[Foundation.Export("textureWithImage:")]
public static SpriteKit.SKTexture FromImage (UIKit.UIImage image);
static member FromImage : UIKit.UIImage -> SpriteKit.SKTexture
Parameters
- image
- UIImage
Returns
- Attributes
Applies to
FromImage(CGImage)
Creates a texture from the specified image.
[Foundation.Export("textureWithCGImage:")]
public static SpriteKit.SKTexture FromImage (CoreGraphics.CGImage image);
static member FromImage : CoreGraphics.CGImage -> SpriteKit.SKTexture
Parameters
- image
- CGImage
Returns
- Attributes
Applies to
FromImage(NSImage)
[Foundation.Export("textureWithImage:")]
public static SpriteKit.SKTexture FromImage (AppKit.NSImage image);
static member FromImage : AppKit.NSImage -> SpriteKit.SKTexture
Parameters
- image
- NSImage
Returns
- Attributes