Vizard 8 » Command Index » Vizard objects » texture » <texture>.getSize
8.1

<texture>.getSize

Returns the dimensions of the texture

<texture>.getSize()  

Remarks

This command will return the width, height, and depth of the texture. The depth value is only relevant with 3D textures.

Return Value

[width,height,depth]

Example

tex = viz.addTexture('image.jpg')

size = tex.getSize()

print('The texture is',size[0],'x',size[1])