picture

Submodule extending the vtkImageActor object functionality.

Picture

class vtkplotter.picture.Picture(obj=None)[source]

Bases: vtkRenderingCorePython.vtkImageActor, vtkplotter.base.ActorBase

Derived class of vtkImageActor. Used to represent 2D pictures. Can be instantiated with a path file name or with a numpy array.

rotateImage.py rotateImage.py

alpha(a=None)[source]

Set/get picture’s transparency.

crop(top=None, bottom=None, right=None, left=None)[source]

Crop picture.

Parameters
  • top (float) – fraction to crop from the top margin

  • bottom (float) – fraction to crop from the bottom margin

  • left (float) – fraction to crop from the left margin

  • right (float) – fraction to crop from the right margin

mirror(axis='x')[source]

Mirror picture along x or y axis.