This is not possible for the time being. To go to gif, jpg or png we need to go via X11 pixmap files which are not available in batch mode. Instead you could run using a framebuffer X11 server which you can use without drawing on the screen. See: http://root.cern.ch/root/roottalk/roottalk01/0374.html -- Fons On Fri, 2003-08-08 at 13:47, Benoit Revenu wrote: > Dear rooters, > > its seems to be impossible to use TASImage when root is launched in batch > mode. Is it really impossible or is there a way to use it in batch ? > > Everything works fine when NOT in batch mode. > > I would like to be able to do this : > > TASImage * img = new TASImage(); > img->FromPad(fCanvas); > img->WriteImage("toto.png"); > delete img; > > > Benoit -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET