[vtkusers] How to capture images from ONLY the RenderWindow?

Clinton Stimpson clinton at elemtech.com
Wed Oct 27 16:57:00 EDT 2004


Have you tried?

  vtkWindowToImageFilter* wintoimage = vtkWindowToImageFilter::New();
  wintoimage->ReadFrontBufferOff();

Clint


------------------------------

>Message: 2
>Date: Wed, 27 Oct 2004 13:35:53 -0400
>From: "Jared Cohen" <Jared.Cohen at noaa.gov>
>Subject: [vtkusers] How to capture images from ONLY the RenderWindow?
>To: vtkusers at vtk.org
>Message-ID: <417FDC79.1000301 at noaa.gov>
>Content-Type: text/plain; charset="us-ascii"
>
>  Hi all. I'm part of a team that's building a large, multi-window GUI; 
>one of the windows contains the VTK RenderWindow. We implemented a 
>function to save the scene as a PNG, but there's a problem: if any of 
>the other windows are in the way of the RenderWindow, they get 
>incorporated into the resulting PNG snapshot! What I want to do is take 
>a snapshot of ONLY the contents of the RenderWindow, regardless of 
>whether or not there are other windows in front of the RenderWindow. Is 
>there a way to do this?
>-------------- next part --------------
>An HTML attachment was scrubbed...
>URL: http://public.kitware.com/pipermail/vtkusers/attachments/20041027/a49c0973/attachment-0001.html
>  
>
>  
>




More information about the vtkusers mailing list