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

From: Valeri Fine (fine@bnl.gov)
Date: Mon Mar 10 2003 - 19:03:28 MET


Hello Pascal,

At present there are two ways:

1. You can always hit "Ctrl-PrntScreen" to copy 
   the selected "window" to the Windows clipboard. 
   Then you can apply the "Paste" operation from 
   any Windows application as usually.

   For example you can paste to the Microsoft 
   Photo Editor and then save it. 

2. Install ROOT from http://root.bnl.gov 
   Use: http://root.bnl.gov/QtRoot/QtRoot.html#gifbatch 

                 Hope this helps, Valeri



> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]
> On Behalf Of Fons Rademakers
> Sent: Monday, March 10, 2003 12:47 PM
> To: Pascal Burgard
> Cc: roottalk@pcroot.cern.ch
> Subject: Re: [ROOT] Write .gif files from canvas under WINDOWS
> 
> Hi Pascal,
> 
>   currently the gif output of TCanvas and TImage classes are only
> supported under X11. You could make save the canvas as SVG or EPS
format
> on windows and then convert that to png.
> 
> Cheers, Fons.
> 
> 
> 
> On Mon, 2003-03-10 at 14:51, Pascal Burgard wrote:
> > 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
> --
> 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:10 MET