Display image in canvas and pad.
void img2pad()
{
if (!img) {
printf("Could not create an image... exit\n");
return;
}
c->SetFixedAspectRatio();
img->
Draw(
"T100,100,#ffff00");
}
virtual void SetConstRatio(Bool_t constRatio=kTRUE)
Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.
An abstract interface to image processing library.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
virtual UInt_t GetWidth() const
virtual void Mirror(Bool_t=kTRUE)
virtual void Flip(Int_t=180)
virtual UInt_t GetHeight() const
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
The most important graphics class in the ROOT system.
virtual void Draw(Option_t *option="")
Draw Pad in Current pad (re-parent pad if necessary).
TVirtualPad * cd(Int_t subpadnumber=0)
Set Current pad.
- Author
- Valeriy Onuchin
Definition in file img2pad.C.