Display image in a new canvas and pad. 
 
  
 
 
{
 
 
      printf(
"Could not create an image... exit\n");
 
      return;
   }
 
   img->SetConstRatio(
false);
 
 
 
   
 
   
   img->DrawText(250, 350, 
"goodbye cruel world ...", 24, 
nullptr, 
ar, 
TImage::kPlain, dir + 
"/image/fore.xpm");
 
 
 
   
 
   c1 = 
new TCanvas(
"rose512", 
"examples of image manipulations", 760, 900);
 
 
   
 
   
 
   
   img4->FillRectangle(
"#FF00FF", 20, 220, 40, 40);
 
 
   
   img4->Gradient(0, 
"#FF0000 #00FF00 #220000FF", 
nullptr, 50, 50, 100, 100);
 
 
   
   img4->Bevel(300, 20, 160, 40, 
"#ffffffff", 
"#fe000000", 3, 
false);
 
   img4->DrawLine(10, 100, 100, 10, 
"#0000ff", 4);
 
 
   
 
   
 
   
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
Array of doubles (64 bits per element).
 
A class to define a conversion from pixel values to pixel color.
 
An abstract interface to image processing library.
 
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
 
static const TString & GetTutorialDir()
Get the tutorials directory in the installation. Static utility function.
 
- Author
 - Valeriy Onuchin 
 
Definition in file rose_image.C.