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

<texture>.getPixelSize

Returns the pixel size of the texture image format

<texture>.getPixelSize()  

Remarks

The pixel size refers to the number of bytes per pixel. For example, RGB textures use 3 bytes per pixel, and RGBA textures use 4 bytes per pixel.

Return Value

Bytes per pixel