PNGReader#
- class PNGReader(*args, **kwargs)[source]#
PNGReader for .png files.
Wraps vtkPNGReader.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_vtk_logo(load=False)
>>> Path(filename).name
'vtk.png'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()