Create a canvas and save as png.
{
TH1F *
h =
new TH1F(
"gaus",
"gaus", 100, -5, 5);
h->FillRandom(
"gaus", 10000);
img->WriteImage(
"canvas.png");
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
R__EXTERN TSystem * gSystem
1-D histogram with a float per channel (see TH1 documentation)
An abstract interface to image processing library.
static TImage * Create()
Create an image.
virtual Bool_t ProcessEvents()
Process pending events (GUI, timers, sockets).
- Author
- Valeriy Onuchin
Definition in file pad2png.C.