Texture.n_components

Texture.n_components#

property Texture.n_components: int[source]#

Return the number of components in the image.

Textures use 3 or 4 components to represent RGB and RGBA images.

Examples#

Download Python source code | Download Jupyter notebook

Show the number of components in the example masonry texture.

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