[vtkusers] How to increase the resolution of an Image?

Bill Lorensen bill.lorensen at gmail.com
Wed Apr 13 08:02:13 EDT 2011


And here is an example that uses RenderLargeImage:
http://vtk.org/Wiki/VTK/Examples/Cxx/Visualization/RenderLargeImage


On Wed, Apr 13, 2011 at 5:09 AM, mirko heuegger <mheuegger at gmail.com> wrote:

> Hello!
>
> On Wed, Apr 13, 2011 at 10:27 AM, rakesh patil
> <prakeshofficial at gmail.com> wrote:
> > I use vtkPNGWriter to write an image in PNG form. Now I need to increase
> the
> > resolution, and quality of this image. How can I do this using
> vtkPNGWriter?
>
> using only a vtkPNGWriter, no idea.
> But you might take a look at the vtkRenderLargeImage class
> (<http://www.vtk.org/doc/nightly/html/classvtkRenderLargeImage.html>)
> That should do the trick to increase the resolution.
>
> eg: (code is c#)
> largeScreenExpoHelper = vtkRenderLargeImage.New();
> largeScreenExpoHelper.SetInput(vtkRenderer);
> largeScreenExpoHelper.SetMagnification(enlageFactor);
> // ...
> pngWriter.SetInputConnection(largeScreenExpoHelper.GetOutputPort());
> // ...
>
> hth
>
> mirko
>
> --
> Real programmers don't document; if it was
> hard to write, it should be hard to understand.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110413/384cc3f0/attachment.htm>


More information about the vtkusers mailing list