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 size to be the wrong size as well.<br><br><span style="font-size:8.25pt;font-family:'Courier'">GetRenderView().ViewSize = [640, 480]</span><span style="font-size:8.25pt;font-family:'Courier'">;<br>
</span>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-size:8.25pt;font-family:'Courier'">GetActiveView().GetRenderWindow()</span><span style="font-size:8.25pt;font-family:'Courier'">.Render();</span></p>
<p style="margin-top:0px;margin-bottom:0px;margin-left:0px;margin-right:0px;text-indent:0px"><span style="font-size:8.25pt;font-family:'Courier'">WriteImage("./RGB.bmp");</span><br></p><br>
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...?<br><br>Best,<br><br>Li<br>