FW: pb Save canvas in jpg or gif format with v4.04

From: Olivier Couet <Olivier.Couet_at_cern.ch>
Date: Mon, 2 May 2005 13:43:40 +0200


(Sorry, I did not send my answer to roottalk here it is:)

Hi Alexis,

I just tried it (4.04) on cygwin. For me it works, both in interactive mode and in batch mode (root -b).

Cheers, Olivier

Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910

E-Mail: Olivier.Couet_at_cern.ch                            Phone:   +41 22
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch
[mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of
Sent: Monday, May 02, 2005 9:45 AM
To: RootTalk
Subject: [ROOT] pb Save canvas in jpg or gif format with v4.04

Hi All,

I just to try 4.04 binary version for cygwin.
The macro below doesn't work anymore for saving canvas in .gif or .jpg.

4.03 it was working for .gif only and in 4.02 for both :-) ) I have the message: Error in <RootX11ErrorHandler>: BadMatch (invalid parameter attributes)
14680355, XREQ: 73) Is it a problem known ? { TCanvas * newcanvas = new TCanvas("newcanvas","newcanvas",710,10,700,500); cout<<"for gif"<<endl; newcanvas->SaveAs("spectrum.gif"); cout<<"for jpg"<<endl; newcanvas->SaveAs("spectrum.jpg"); } Thank you very much for your help. Regards, Alexis
Received on Mon May 02 2005 - 13:43:47 MEST

This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET