Display image in canvas and pad.
{
printf(
"Could not create an image... exit\n");
return;
}
c->SetFixedAspectRatio();
img->Draw(
"T100,100,#ffff00");
TPad *
p1 =
new TPad(
"i1",
"i1", 0.05, 0.55, 0.05 +
d *
i1->GetWidth() /
i1->GetHeight(), 0.95);
TPad *
p2 =
new TPad(
"i2",
"i2", 0.55, 0.55, 0.95, 0.55 +
d *
i2->GetHeight() /
i2->GetWidth());
TPad *
p3 =
new TPad(
"i3",
"i3", 0.55, 0.05, 0.55 +
d *
i3->GetWidth() /
i3->GetHeight(), 0.45);
TPad *
p4 =
new TPad(
"i4",
"i4", 0.05, 0.05, 0.45, 0.05 +
d *
i4->GetHeight() /
i4->GetWidth());
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
An abstract interface to image processing library.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
The most important graphics class in the ROOT system.
TObject * FindObject(const char *name) const override
Search if object named name is inside this pad or in pads inside this pad.
- Author
- Valeriy Onuchin
Definition in file img2pad.C.