Skip to content
Snippets Groups Projects
Commit 00117bbe authored by Olivier Couet's avatar Olivier Couet
Browse files

- From Onuchin:

  In batch, when a picture was saved in a binary file (gif for instance) from
  an image containing more than one pad, only the first pad was saved. The
  following macro demonstrates the problem: ccc2.gif was wrong compared to
  ccc1.gif.
  {
     gROOT->SetBatch();
     TCanvas *c = new TCanvas;
     c->Divide(1,2);
     TH1F *h = new TH1F("gaus", "gaus", 100, -5, 5);
     h->FillRandom("gaus", 10000);
     c->cd(1); h->Draw();
     c->cd(2); h->Draw("c*");
     c->Print("ccc1.gif");
     TImage *img = TImage::Create();
     img->FromPad(c);
     img->WriteImage("ccc2.gif");
  }


git-svn-id: http://root.cern.ch/svn/root/trunk@22872 27541ba8-7e3a-0410-8455-c3a389f83636
parent 21e100d1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment