pyvista.BMPReader#

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

BMP Reader for .bmp files.

Examples

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

Methods

BMPReader.hide_progress()

Hide the progress bar when loading the file.

BMPReader.read()

Read data in file.

BMPReader.show_progress([msg])

Show a progress bar when loading the file.

Attributes

BMPReader.path

Return or set the filename or directory of the reader.

BMPReader.reader

Return the vtk Reader object.