image_to_texture

image_to_texture(image)

Convert vtkImageData (pyvista.UniformGrid) to a vtkTexture.

Parameters
imagepyvista.UniformGrid or vtkImageData

Image to convert.

Returns
vtkTexture

VTK texture.