RE: [ROOT] Write .gif files from canvas under WINDOWS

From: Faine, Valeri (fine@bnl.gov)
Date: Mon Mar 10 2003 - 16:05:46 MET


Hi Pascal,

You are welcome to visit
http://root.bnl.gov

to see whether this is what you are looking for.

Try this 
http://root.bnl.gov/QtRoot/QtRoot.html#gifbatch
and 
those
http://root.bnl.gov/QtRoot/QtRoot.html#features
http://root.bnl.gov/QtRoot/TQtSaveAsDialog.gif


                   Hope this helps, Valeri


> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]
> On Behalf Of Pascal Burgard
> Sent: Monday, March 10, 2003 8:51 AM
> To: roottalk@pcroot.cern.ch
> Subject: [ROOT] Write .gif files from canvas under WINDOWS
> 
> Dear ROOT
> 
> My version of ROOT is 3.04/02
> The machine I am working on is a laptop SIEMENS, Pentium(r) Processor,
> 64Mo
> RAM under Windows Me.
> 
> I am programming under WINDOWS VISUAL C++.
> 
> I am doing SEVERAL fits of gaussian curves in the SAME canvas.
> I wish to save each of these fits into .png, .gif or any other image
> format
> that can easily be read by usual applications.
> 
> One of your pages in the tutorials explains how to do it :
> http://root.cern.ch/root/html/examples/pad2png.C.html
> 
> However if I follow these instructions, I get no error message while
> compiling or linking, but when I execute the program I get the message
:
> 
> Error in <TWinNTSystem::DynamicPathName>: AsImage does not exist in
> .;d:\root\bin;c:\windows;c:\window\command;d:\root\bin
> or has wrong file extension (.dll)
> 
> Then I heard TImage came from a software called "AfterStep" under
Linux
> and
> the same thing did not exist under Windows. Is that true?
> 
> I therefore tried four other things :
> 
> 1/
> ((TGWin32*)gVirtualX)->WriteGIF("test.gif");
> 
> 2/
> Int_t canvasid = canvas->GetCanvasID();
> gVirtualX->SelectWindow(canvasid);
> gVirtualX->WriteGIF("test.gif");
> 
> 3/
> canvas->SaveAs("test.gif");
> 
> 4/
> canvas->Print("test.gif");
> 
> But for each of them :
> *No message when compiling
> *No message when linking
> *The program executed as usually
> *However NO .gif file was created
> 
> Can you please help me?
> 
> Thanks a lot for your help
> 
> Pascal



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET