Skip to main content
Ctrl+K
Logo image

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Site Navigation

  • Getting Started
  • User Guide
  • Examples
  • API Reference
  • Extras

Section Navigation

API Reference

  • Core API
  • Plotting
  • Utilities
    • Geometric Objects
    • Parametric Objects
    • General Utilities
      • pyvista.core.utilities.VtkErrorCatcher
      • pyvista.core.utilities.axis_rotation
      • pyvista.core.utilities.is_inside_bounds
      • pyvista.core.utilities.set_error_output_file
      • pyvista.array_from_vtkmatrix
      • pyvista.cubemap
      • pyvista.cubemap_from_filenames
      • pyvista.image_to_texture
      • pyvista.is_pyvista_dataset
      • pyvista.numpy_to_texture
      • pyvista.pyvista_ndarray
      • pyvista.vtkmatrix_from_array
      • pyvista.wrap
      • pyvista.read
      • pyvista.read_exodus
      • pyvista.read_legacy
      • pyvista.read_texture
      • pyvista.save_meshio
      • pyvista.CellType
      • pyvista.fit_plane_to_points
      • pyvista.lines_from_points
      • pyvista.vector_poly_data
      • pyvista.vtk_points
      • pyvista.cell_array
      • pyvista.convert_array
      • pyvista.field_array
      • pyvista.get_array
      • pyvista.point_array
      • pyvista.compare_images
      • pyvista.Color
      • pyvista.ColorLike
      • pyvista.start_xvfb
      • pyvista.Report
  • Readers
  • Examples
  • API Reference
  • General Utilities
  • pyvista.image_to_texture

pyvista.image_to_texture#

image_to_texture(image)[source]#

Convert pyvista.ImageData to a pyvista.Texture.

Parameters:
imagepyvista.ImageData | vtkImageData

Image to convert.

Returns:
pyvista.Texture

The texture.

On this page
  • image_to_texture()
Edit on GitHub

© Copyright 2017-2023, The PyVista Developers.

Built with the PyData Sphinx Theme 0.13.3.