The third argument is a magnification factor. I guess there wasn't a default value of 1 set for the magnification factor so you need to put that in automatically.<br>
<br>You should be able to just use WriteImage(<output file name>) without using the view object. It determines the image output type from the file extension.<br><br>Andy<br><br><div class="gmail_quote">On Tue, Jul 17, 2012 at 11:26 AM, Roba Binyahib <span dir="ltr"><<a href="mailto:roba.binyahib@kaust.edu.sa" target="_blank">roba.binyahib@kaust.edu.sa</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello <br><br>I'm want to write the result of this code to png file and I found the writer <br><br>WriteImage()<br>
<br>the thing is that in Paraview's tutorials I found the writer with two 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 that WriteImage() takes three arguments, so I found the following in one of 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 400*400<br><br>when I changed the last argument to 2 I got an image that have the size 800*800 <br>
<br>so what does the third argument refers to ? and why is it not working with only two arguments ?<br><br>hope someone can help<br><br>thanks<br>
</div>
<br>
<div><hr></div><font face="Arial" size="1">This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.</font><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 <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: <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>