pyvista.PNGReader

Contents

pyvista.PNGReader#

class PNGReader(*args, **kwargs)[source]#

PNGReader for .png files.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> filename = examples.download_vtk_logo(load=False)
>>> filename.split("/")[-1]  # omit the path
'vtk.png'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()
../../../_images/pyvista-PNGReader-1_00_00.png

Methods

Attributes