When working ParaView's gui, I can click File > Save Screenshot to create a .png file of my work. With this procedure, I can specify whatever resolution that I want. I want to automate the generation of screenshots in a python script, but I don't see a way of specifying a resolution. Is this possible? I've tried
myRenderView.ViewSize = [1000, 1000]
which has some sort of effect, but not the desired one.
Looking at the source code for SaveScreenshot()
I see that a servermanager.ParaViewPipelineController()
object is created and then its WriteImage()
method is called. I was thinking that maybe this WriteImage()
method has resolution arguments that are not a part of the wrapper's arguments, but I can't find the definition of that method. I haven't tried downloading/compiling the actual ParaView source code. I'm just searching around online.
Maybe I should be using vtk directly instead of trying to work through ParaView?