I am doing this in python shell.. <br><br><div class="gmail_quote">On Tue, Apr 10, 2012 at 3:50 PM, Utkarsh Ayachit <span dir="ltr"><<a href="mailto:utkarsh.ayachit@kitware.com">utkarsh.ayachit@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Are you doing this in the QT GUI or pvpython?<br>
<div class="HOEnZb"><div class="h5"><br>
On Tue, Apr 10, 2012 at 3:20 PM, Li Guan <<a href="mailto:li.9uan@gmail.com">li.9uan@gmail.com</a>> wrote:<br>
> Thank you Utkarsh,<br>
><br>
> But even if I do as you said, the actual view size is still [648, 507].<br>
><br>
> In fact, you could try the following code out, and check the dumped image<br>
> size to be the wrong size as well.<br>
><br>
> GetRenderView().ViewSize = [640, 480];<br>
><br>
> GetActiveView().GetRenderWindow().Render();<br>
><br>
> WriteImage("./RGB.bmp");<br>
><br>
><br>
> I just wonder if there is a way in python script that I can lock the view<br>
> size to custom size [640,480], just like we click on the paraview tools -><br>
> Lock View Size Custom...?<br>
><br>
> Best,<br>
><br>
> Li<br>
</div></div></blockquote></div><br>