See the example:
$ROOTSYS/tutorials/image/hsumanim.C
From: owner-roottalk_at_root.cern.ch [mailto:owner-roottalk_at_root.cern.ch]
On Behalf Of Neil Fazel
Sent: Monday, July 20, 2009 4:13 PM
To: roottalk_at_root.cern.ch
Subject: [ROOT] using TPad->Print() to create animated GIF
I've been trying to create an animated GIF file using the Print() function of TPad class:
void Print <http://root.cern.ch/root/html/src/TPad.cxx.html#ySpbRE>
(const char* filename, Option_t
<http://root.cern.ch/root/html/ListOfTypes.html#Option_t> * option)
Save Pad
<http://root.cern.ch/root/html/TVirtualPad.html#TVirtualPad:Pad>
contents in a file in one of various formats.
if option = 0 - as "ps"
<snip>
"gif" - a GIF file is produced
"gif+NN" - an animated GIF file is produced, where NN is delay in 10ms units
<snip>
I do something like this:
mycanvases->Print("./out/animated.gif+50");
A .gif file is indeed created, but when I view it in Mac Preview, I only see the first picture saved, without animation. What am I missing here?
Thanks,
Neil Received on Mon Jul 20 2009 - 16:15:38 CEST
This archive was generated by hypermail 2.2.0 : Mon Jul 20 2009 - 17:50:02 CEST