image_to_texture#

image_to_texture(image)[source]#

Convert vtkImageData (pyvista.UniformGrid) to a vtkTexture.

Parameters
imagepyvista.UniformGrid or vtkImageData

Image to convert.

Returns
vtkTexture

VTK texture.