Edytuj

Udostępnij za pośrednictwem


SKTexture.FromData Method

Definition

Overloads

FromData(NSData, CGSize)

Creates a texture of the specified size from the provided pixel data.

FromData(NSData, CGSize, Boolean)
FromData(NSData, CGSize, UInt32, UInt32)

FromData(NSData, CGSize)

Creates a texture of the specified size from the provided pixel data.

[Foundation.Export("textureWithData:size:")]
public static SpriteKit.SKTexture FromData (Foundation.NSData pixelData, CoreGraphics.CGSize size);
static member FromData : Foundation.NSData * CoreGraphics.CGSize -> SpriteKit.SKTexture

Parameters

pixelData
NSData
size
CGSize

Returns

Attributes

Applies to

FromData(NSData, CGSize, Boolean)

[Foundation.Export("textureWithData:size:flipped:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 8, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 10, ObjCRuntime.PlatformArchitecture.All, null)]
public static SpriteKit.SKTexture FromData (Foundation.NSData pixelData, CoreGraphics.CGSize size, bool flipped);
static member FromData : Foundation.NSData * CoreGraphics.CGSize * bool -> SpriteKit.SKTexture

Parameters

pixelData
NSData
size
CGSize
flipped
Boolean

Returns

Attributes

Applies to

FromData(NSData, CGSize, UInt32, UInt32)

[Foundation.Export("textureWithData:size:rowLength:alignment:")]
public static SpriteKit.SKTexture FromData (Foundation.NSData pixelData, CoreGraphics.CGSize size, uint rowLength, uint alignment);
static member FromData : Foundation.NSData * CoreGraphics.CGSize * uint32 * uint32 -> SpriteKit.SKTexture

Parameters

pixelData
NSData
size
CGSize
rowLength
UInt32
alignment
UInt32

Returns

Attributes

Applies to