void pad2png()
   // Create a canvas and save as png.
   //Author: Valeriy Onuchin
   TCanvas *c = new TCanvas;
   TH1F *h = new TH1F("gaus", "gaus", 100, -5, 5);
   h->FillRandom("gaus", 10000);


   TImage *img = TImage::Create();

   //img->FromPad(c, 10, 10, 300, 200);


   delete h;
   delete c;
   delete img;

Last change: Wed Dec 17 10:56:30 2008
Last generated: 2008-12-17 10:56

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.