Create a canvas and save as png.
void pad2png()
{
TH1F *
h =
new TH1F(
"gaus",
"gaus", 100, -5, 5);
h->FillRandom(
"gaus", 10000);
}
R__EXTERN TSystem * gSystem
1-D histogram with a float per channel (see TH1 documentation)
An abstract interface to image processing library.
virtual void FromPad(TVirtualPad *, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
static TImage * Create()
Create an image.
virtual void WriteImage(const char *, EImageFileTypes=TImage::kUnknown)
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
- Author
- Valeriy Onuchin
Definition in file pad2png.C.