[vtkusers] How can i save single viewport ?
孟玮 谢
xmengwei168 at yahoo.com.cn
Tue Dec 2 20:54:24 EST 2003
i want to save single viewport .How can i do,though i
know the following code can save renderwindow as a
picture.
vtkWindowToImageFilter
*w2i=vtkWindowToImageFilter::New();
w2i->SetInput(ren1);
vtkJPEGWriter *writer=vtkJPEGWriter::New();
writer->SetInput(w2i->GetOutput());
writer->SetFileName( "/root/document/n.jpg");
writer->Write();
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the vtkusers
mailing list