I just pushed a change to next. Besides the default value, I also made a change to the source code since if the magnification was greater than 1 it would change the view. Utkarsh, do you mind checking that the change for this is proper?  The branch name is 13320_default_view_magnification.<br>
<br>Andy<br><br><div class="gmail_quote">On Tue, Jul 17, 2012 at 1:07 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I think we should fix the default too. Andy, mind pushing a patch?<br>
<br>
On Tue, Jul 17, 2012 at 9:15 AM, Andy Bauer &lt;<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>&gt; wrote:<br>
&gt; The third argument is a magnification factor.  I guess there wasn&#39;t a<br>
&gt; default value of 1 set for the magnification factor so you need to put that<br>
&gt; in automatically.<br>
&gt;<br>
&gt; You should be able to just use WriteImage(&lt;output file name&gt;) without using<br>
&gt; the view object. It determines the image output type from the file<br>
&gt; extension.<br>
&gt;<br>
&gt; Andy<br>
&gt;<br>
&gt; On Tue, Jul 17, 2012 at 11:26 AM, Roba Binyahib &lt;<a href="mailto:roba.binyahib@kaust.edu.sa">roba.binyahib@kaust.edu.sa</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hello<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m want to write the result of this code to png file and I found the<br>
&gt;&gt; writer<br>
&gt;&gt;<br>
&gt;&gt; WriteImage()<br>
&gt;&gt;<br>
&gt;&gt; the thing is that in Paraview&#39;s tutorials I found the writer with two<br>
&gt;&gt; arguments like the following<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; view.WriteImage(&quot;example.png&quot;,&quot;vtkPNGWriter&quot;)<br>
&gt;&gt;<br>
&gt;&gt; but when I run that from the termianl using pvpython I got an error says<br>
&gt;&gt; that WriteImage() takes three arguments, so I found the following in one of<br>
&gt;&gt; the websites<br>
&gt;&gt;<br>
&gt;&gt; view.WriteImage(&quot;example.png&quot;,&quot;vtkPNGWriter&quot;,1)<br>
&gt;&gt;<br>
&gt;&gt; and when I did that, it worked and wrote an image that has a size of<br>
&gt;&gt; 400*400<br>
&gt;&gt;<br>
&gt;&gt; when I changed the last argument to 2 I got an image that have the size<br>
&gt;&gt; 800*800<br>
&gt;&gt;<br>
&gt;&gt; so what does the third argument refers to ? and why is it not working with<br>
&gt;&gt; only two arguments ?<br>
&gt;&gt;<br>
&gt;&gt; hope someone can help<br>
&gt;&gt;<br>
&gt;&gt; thanks<br>
&gt;&gt;<br>
&gt;&gt; ________________________________<br>
&gt;&gt; This message and its contents, including attachments are intended solely<br>
&gt;&gt; for the original recipient. If you are not the intended recipient or have<br>
&gt;&gt; received this message in error, please notify me immediately and delete this<br>
&gt;&gt; message from your computer system. Any unauthorized use or distribution is<br>
&gt;&gt; prohibited. Please consider the environment before printing this email.<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;&gt;<br>
&gt;&gt; Visit other Kitware open-source projects at<br>
&gt;&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;&gt;<br>
&gt;&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt;&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;&gt;<br>
&gt;&gt; Follow this link to subscribe/unsubscribe:<br>
&gt;&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
</blockquote></div><br>