13 TCanvas *canv =
new TCanvas(
"image",
"n4254", 40, 40, 812, 700);
14 canv->ToggleEventStatus();
15 canv->SetRightMargin(0.2);
16 canv->SetLeftMargin(0.01);
17 canv->SetTopMargin(0.01);
18 canv->SetBottomMargin(0.01);
22 const char *fname =
"galaxy.root";
24 if (!gSystem->AccessPathName(fname)) {
25 gal = TFile::Open(fname);
27 printf(
"accessing %s file from http://root.cern.ch/files\n",fname);
28 gal = TFile::Open(Form(
"http://root.cern.ch/files/%s",fname));
31 TImage *img = (TImage*)gal->Get(
"n4254");
35 img->StartPaletteEditor();
38 img->Zoom(80, 80, 250, 250);