Hm I still don&#39;t see anything about how to set the size of the image? And I also don&#39;t know how I would have found vtkImageWriter from WriteImage(), when WriteImage() is not an actual function anywhere in the vtk docs.  And the same kind of thing, I thought maybe size would be changed in my:<br>
<br>view=servermanager.CreateRenderView()<br>rep = servermanager.CreateRepresentation(reader, view)<br><br>instead of in the actual writing step, but I didn&#39;t see servermanager in the vtk docs. Also, I found a vtkCameraRepresentation, but it doesn&#39;t look like this is the same thing created by CreateRepresentation. I found vtkRenderView, and in vtkView (the parent class) there is a SizePort(i , j) function, but how would you call that from python? I think the main issue is that python doesn&#39;t require the variables to be typed and hence I don&#39;t know what they actually are.<br>
<br clear="all">Thanks,<br><br>David<br>
<br><br><div class="gmail_quote">On Sat, Apr 11, 2009 at 11:25 AM, Peter Brady <span dir="ltr">&lt;<a href="mailto:petertbrady@gmail.com">petertbrady@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Try the vtk documentation.  I think this page might be what you&#39;re looking for.<br>
<br>
<a href="http://www.vtk.org/doc/nightly/html/classvtkImageWriter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkImageWriter.html</a><br>
<br>
Hope that helps,<br>
Peter.<br>
<div><div></div><div class="h5"><br>
On Sat, Apr 11, 2009 at 7:57 AM, David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt; wrote:<br>
&gt; I am doing something like this:<br>
&gt;<br>
&gt; --------------<br>
&gt; view=servermanager.CreateRenderView()<br>
&gt; #render something<br>
&gt; view.WriteImage(&quot;top.png&quot;, &quot;vtkPNGWriter&quot;)<br>
&gt; --------------<br>
&gt;<br>
&gt; I can find help with<br>
&gt; help(servermanager)<br>
&gt; or<br>
&gt; help(servermanager.CreateRenderView)<br>
&gt;<br>
&gt; but not with<br>
&gt;<br>
&gt; help(servermanager.CreateRenderView.WriteImage)<br>
&gt;<br>
&gt; I was trying to figure out how to change the image size or see what other<br>
&gt; writes are available, things like that. I can&#39;t seem to find documentation.<br>
&gt; I found this:<br>
&gt; <a href="http://www.paraview.org/doc/nightly/html/classvtkPVRenderView.html" target="_blank">http://www.paraview.org/doc/nightly/html/classvtkPVRenderView.html</a><br>
&gt;<br>
&gt; But it doesn&#39;t have a WriteImage() function, so I guess I&#39;m not in the right<br>
&gt; place?<br>
&gt;<br>
&gt; Can someone point me in the right direction?<br>
&gt;<br>
&gt; Thanks,<br>
&gt;<br>
&gt; David<br>
&gt;<br>
</div></div>&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>
&gt;<br>
</blockquote></div><br>