pyvista.PNGReader#

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

PNGReader for .png files.

Examples

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

Methods

PNGReader.hide_progress()

Hide the progress bar when loading the file.

PNGReader.read()

Read data in file.

PNGReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

PNGReader.path

Return or set the filename or directory of the reader.

PNGReader.reader

Return the vtk Reader object.