I was wondering if it is possible to redirect graphic window output to a Postscript file. I know that by creating a TCanvas and using Print() method I can put a snapshot of the canvas into a Postscript file… but can it be done for a TBrowser for example?
And suppose I wish to make multiple captures of the same TCanvas into a Postscript file. Is there a way to instruct ROOT to print the snapshots into a single Postscript file (as in having multiple pages in a single file), instead of overwriting the same one or creating different ones?
Thanks couet, this is just what I was looking for in the second part.
As for the first question: do you (or anyone else) know how to “automatically” redirect graphical output to a file, without having to issue Print()s for TCanvases? I.e., suppose I wish to make a screen capture of each window that is opened (e.g. a TBrowser) to a file that I specify. I.e., I tell ROOT that instead of having the windows sent to screen, to send them to a specified file. Can this be done?
For a screen capture of a TCanvas (which, I guess, means that you want to see the GUI around the graphics) you should use an external tool like “xv” (on linux) or one of the many sceen capture tools on Windows.
So I suppose ROOT has no “automatic” redirection of graphic output? I’m trying to find a way to make screen captures as they appear, independently of the type of GUI that shows up at the time (be it a TBrowser or a TTree::StartViewer() or any other for that matter).
The reason I’m asking this is that I’m trying to find a way to have ROOT console (and GUI) output automatically exported to Web-readable files (ASCII text and GIF/PNG/JPG images, respectively) based on a input script processed by ROOT.