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"><<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">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">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 <<a href="mailto:andy.bauer@kitware.com">andy.bauer@kitware.com</a>> wrote:<br>
> The third argument is a magnification factor. I guess there wasn't a<br>
> default value of 1 set for the magnification factor so you need to put that<br>
> in automatically.<br>
><br>
> You should be able to just use WriteImage(<output file name>) without using<br>
> the view object. It determines the image output type from the file<br>
> extension.<br>
><br>
> Andy<br>
><br>
> On Tue, Jul 17, 2012 at 11:26 AM, Roba Binyahib <<a href="mailto:roba.binyahib@kaust.edu.sa">roba.binyahib@kaust.edu.sa</a>><br>
> wrote:<br>
>><br>
>> Hello<br>
>><br>
>> I'm want to write the result of this code to png file and I found the<br>
>> writer<br>
>><br>
>> WriteImage()<br>
>><br>
>> the thing is that in Paraview's tutorials I found the writer with two<br>
>> arguments like the following<br>
>><br>
>><br>
>> view.WriteImage("example.png","vtkPNGWriter")<br>
>><br>
>> but when I run that from the termianl using pvpython I got an error says<br>
>> that WriteImage() takes three arguments, so I found the following in one of<br>
>> the websites<br>
>><br>
>> view.WriteImage("example.png","vtkPNGWriter",1)<br>
>><br>
>> and when I did that, it worked and wrote an image that has a size of<br>
>> 400*400<br>
>><br>
>> when I changed the last argument to 2 I got an image that have the size<br>
>> 800*800<br>
>><br>
>> so what does the third argument refers to ? and why is it not working with<br>
>> only two arguments ?<br>
>><br>
>> hope someone can help<br>
>><br>
>> thanks<br>
>><br>
>> ________________________________<br>
>> This message and its contents, including attachments are intended solely<br>
>> for the original recipient. If you are not the intended recipient or have<br>
>> received this message in error, please notify me immediately and delete this<br>
>> message from your computer system. Any unauthorized use or distribution is<br>
>> prohibited. Please consider the environment before printing this email.<br>
>> _______________________________________________<br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Please keep messages on-topic and check the ParaView Wiki at:<br>
>> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the ParaView Wiki at:<br>
> <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
><br>
</blockquote></div><br>