Texture:getWidth

Returns the width of the Texture.

width = Texture:getWidth(mipmap)

Arguments

NameTypeDefaultDescription
mipmapnumber1The mipmap level to get the width of.

Returns

NameTypeDescription
widthnumberThe width of the Texture, in pixels.

See also