[Paraview-developers] render window size

Li Guan li.9uan at gmail.com
Tue Apr 10 15:20:16 EDT 2012


Thank you Utkarsh,

But even if I do as you said, the actual view size is still [648, 507].

In fact, you could try the following code out, and check the dumped image
size to be the wrong size as well.

GetRenderView().ViewSize = [640, 480];

GetActiveView().GetRenderWindow().Render();

WriteImage("./RGB.bmp");

I just wonder if there is a way in python script that I can lock the view
size to custom size [640,480], just like we click on the paraview tools ->
Lock View Size Custom...?

Best,

Li
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview-developers/attachments/20120410/57d88199/attachment.htm>


More information about the Paraview-developers mailing list