Canvas:newTextureData

Returns a new TextureData containing the contents of a Texture attached to the Canvas.

textureData = Canvas:newTextureData(index)

Arguments

NameTypeDefaultDescription
indexnumber1The index of the Texture to read from.

Returns

NameTypeDescription
textureDataTextureDataThe new TextureData.

See also