Düzenle

Aracılığıyla paylaş


SKTexture.FromImage Method

Definition

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

Applies to