Hi,
Calling Update() on vtkPNGReader performs a file read but calling Update() on vtkPNGWriter does not write out a proper PNG file, one has to call Write(), if I just call Update(), a file of the expected size is written but is not a valid PNG file.
I am building pipeline programmatically and was hoping I am able to call Update() for any vtkAlgorithm derived classes.
Have I done something wrong or misunderstood the purpose of Update() ?
import vtk
reader = vtk.vtkPNGReader()
reader.SetFileName('TestABC.png')
writer = vtk.vtkPNGWriter()
writer.SetFileName('nicholas.png')
writer.AddInputConnection(0,reader.GetOutputPort())
# writer.Write()
writer.Update()
Cheers