pyvista.Texture.n_components#

property Texture.n_components: int[source]#

Return the number of components in the image.

In textures, 3 or 4 components are used for representing RGB and RGBA images.

Examples

Show the number of components in the example masonry texture.

>>> from pyvista import examples
>>> texture = examples.download_masonry_texture()
>>> texture.n_components
3