Hi,
see:
http://root.cern.ch/cgi-bin/print_hit_bold.pl/root/roottalk/roottalk00/0402.html?gifbatch#first_hit
You can have a look at the roottalk discussions on this subsject.
Go to the root search engine (or Google) and search, eg for
gif batch
The Root search engine is at: http://root.cern.ch/root/Search.phtml
Rene Brun
On Sun, 11 Aug 2002, Choi Ki-young wrote:
> I want to create graph to gif files. But when I run my program,
> it print out this error messagem.
>
> Cannot create gif file in batch mode.
>
> I don't understand what is the reason for this error.
>
> ---<My code>---
> #include "TCanvas.h"
>
> void write_fields(Fields *current, int iteration)
> {
> char gif[256];
>
> TCanvas *c1 = new TCanvas("c1", "2D FDTD", 800, 600);
>
> current->Hz.Draw();
> c1->Modified();
> c1->Update();
> sprintf(gif, "pict_%.3d.gif", iteration);
> c1->SaveAs(gif);
> }
>
>
> --
> Sincerely, Ki-young
>
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET