Re: [ROOT] I can't use TCanvas::SaveAS class (animated gif)

From: Rene Brun (Rene.Brun@cern.ch)
Date: Wed Aug 07 2002 - 09:54:28 MEST


Hi,

In the attachement, you will find a script hsumanim.C illustrating
how to produce an animated gif file from a ROOT application.
See comments in the example.
hsumanim.C is now included as a standard ROOT tutorial in the CVS version.

In your case, you blindly copied Fons's example. A declaration
like char gif[24] is necessary.

Rene Brun

On Tue, 30 Jul 2002, Choi Ki-young wrote:

> I want to make a gif file with my graph, and I found out this info, 
> 
> http://root.cern.ch/root/roottalk/roottalk01/0926.html
> 
> But, I gained this error, 
> 
> root [0] .x hsimple.C 
> Error: non class,struct,union object $c1 used with . or -> FILE:hsimple.C LINE:59
> *** Interpreter error recovered ***
> 
> Line 59 is, 
> 
> c1->SaveAs(gif);
> 
> 
> 
> How can I get a gif file?
> 
> -- 
> Sincerely, 
> Choi Ki-young			http://korea.gnu.org/people/xenus
> Microoptics NRL, Hanyang Univ.  http://microoptics.hanyang.ac.kr
> 





This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:03 MET