And here is an example that uses RenderLargeImage:<br><a href="http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderLargeImage">http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderLargeImage</a><br><br><br><div class="gmail_quote">
On Wed, Apr 13, 2011 at 5:09 AM, mirko heuegger <span dir="ltr"><<a href="mailto:mheuegger@gmail.com">mheuegger@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hello!<br>
<div class="im"><br>
On Wed, Apr 13, 2011 at 10:27 AM, rakesh patil<br>
<<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>> wrote:<br>
> I use vtkPNGWriter to write an image in PNG form. Now I need to increase the<br>
> resolution, and quality of this image. How can I do this using vtkPNGWriter?<br>
<br>
</div>using only a vtkPNGWriter, no idea.<br>
But you might take a look at the vtkRenderLargeImage class<br>
(<<a href="http://www.vtk.org/doc/nightly/html/classvtkRenderLargeImage.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkRenderLargeImage.html</a>>)<br>
That should do the trick to increase the resolution.<br>
<br>
eg: (code is c#)<br>
largeScreenExpoHelper = vtkRenderLargeImage.New();<br>
largeScreenExpoHelper.SetInput(vtkRenderer);<br>
largeScreenExpoHelper.SetMagnification(enlageFactor);<br>
// ...<br>
pngWriter.SetInputConnection(largeScreenExpoHelper.GetOutputPort());<br>
// ...<br>
<br>
hth<br>
<br>
mirko<br>
<br>
--<br>
Real programmers don't document; if it was<br>
hard to write, it should be hard to understand.<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 VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>