Canvas:newImage

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

image = Canvas:newImage(index)

Arguments

NameTypeDefaultDescription
indexnumber1The index of the Texture to read from.

Returns

NameTypeDescription
imageImageThe new Image.

See also