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.
 
TObject * FindObject(const char *name) const override
Search if object named name is inside this pad or in pads inside this pad.
 
TVirtualPad * cd(Int_t subpadnumber=0) override
Set Current pad.
 
void Draw(Option_t *option="") override
Draw Pad in Current pad (re-parent pad if necessary).
 
- Author
 - Valeriy Onuchin 
 
Definition in file img2pad.C.