[vtkusers] Fw: Grab function in VTk4 (vtkrenderer windows)

Mdl mdl78 at libero.it
Fri Mar 7 13:11:45 EST 2003


Take a look at vtkWindowToImageFilter class and to the vtkXXXWriter classes.
Here's a short sample:

w2i = vtkWindowToImageFilter::New();
w2i->SetInput (myWindow);

jpegSave = vtkJPEGWriter::New();
jpegSave->SetInput(w2i->GetOutput());
jpegSave->SetFileName(nomeFile);
jpegSave->SetQuality(95);
jpegSave->Write();

Hope this help.
Bye!
Marco
________________________________________

                            Marco Di Lorenzo
                    (dilorenzo.marco at inwind.it)
________________________________________

IAC-CNR di Roma
Istituto per le Applicazioni del Calcolo "M. Picone"
Viale del Policlinico, 137
00161, Roma
________________________________________





More information about the vtkusers mailing list