> Hi, > I have a Fl_window on which a vtkviewer is displayed. I am > planning to have multiple vtkviewers tiled on to a single > Fl_Window. I would like to give a save button which can save > the whole window display as a 2D Image. > Is there any way I could do that. > Thanks so much. > -Suja. > > flw = new Fl_Window(300,500,title); > flrwi = new vtkFlRenderWindowInteractor(5,27,290,260,NULL); > flw->resizable(flrwi); > viewer = vtkImageViewer2::New(); > viewer->SetupInteractor(flrwi); > ...........
This may depend what platform you are on - it may be easier just to grab the screen, or better yet your active window, rather than try and iterate through your individual viewer widgets and store their content. But grabbing screen or window contents tends to be platform specific, as I don't think fltk abstracts all the aspects of that. SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

