[vtkusers] vtkRenderWindow contents to ppm

Jeff Lee jeff at cdnorthamerica.com
Wed Mar 6 16:21:01 EST 2002


Hi,
Have a look at vtkWindowToImageFilter
-Jeff

Dean Inglis wrote:

>Hi,
>
>RenderWindows used to be able to do this:
>
>  iren->SetUserMethod(&fn,(void*)renWin);
>
>void fn(void *ren)
>{
> ((vtkWin32OpenGLRenderWindow *)ren)->SetFileName("scrdump.ppm");
> ((vtkWin32OpenGLRenderWindow *)ren)->SaveImageAsPPM();
>}
>
>which now is in vtkImageWindow.  How can I do this with a 3D image from a
>vtkRenderWindow?
>
>Dean
>
>_______________________________________________
>This is the private VTK discussion list. 
>Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers
>
>





More information about the vtkusers mailing list