39 h =
gROOT->GetPluginManager()->FindHandler(
"TImage");
40 if (!
h)
return nullptr;
41 if (
h->LoadPlugin() == -1) {
47 if (img) img->
SetName(
"dummy_image");
111 printf(
"TImage: \"%s\"\n",
GetName() );
120 char *fullname =
gSystem->ExpandPathName(file);
139 img->
SetImage(imageData, width, height, palette);
154 img->
SetImage(imageData, width, palette);
169 img->
SetImage(imageData, width, palette);
int Int_t
Signed integer 4 bytes (int).
unsigned int UInt_t
Unsigned integer 4 bytes (unsigned int).
double Double_t
Double 8 bytes.
const char Option_t
Option string (const char).
TImage operator+(const TImage &i1, const TImage &i2)
TImage operator/(const TImage &i1, const TImage &i2)
TVectorT< Double_t > TVectorD
Array of doubles (64 bits per element).
A class to define a conversion from pixel values to pixel color.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
virtual void DrawText(Int_t=0, Int_t=0, const char *="", Int_t=12, const char *=nullptr, const char *="fixed", EText3DType=TImage::kPlain, const char *=nullptr, Float_t=0)
virtual void ReadImage(const char *, EImageFileTypes=TImage::kUnknown)
void ls(Option_t *option="") const override
List this image with its attributes.
static TImage * Create()
Create an image.
virtual Bool_t SetImageBuffer(char **, EImageFileTypes=TImage::kPng)
static EImageFileTypes GetImageFileTypeFromFilename(const char *opt)
Return the image type for the extension specified in filename.
virtual void SetImage(const Double_t *, UInt_t, UInt_t, TImagePalette *=nullptr)
virtual void DrawTextOnPad(TText *, Int_t=0, Int_t=0, TVirtualPad *=nullptr, Int_t=0, Int_t=0)
Draw text on specified pad, check pad clipping rules.
const char * GetName() const override
Returns name of object.
virtual void SetName(const char *name)
Set the name of the TNamed.
static void IndentLevel()
Functions used by ls() to indent an object hierarchy.
Bool_t EndsWith(const char *pat, ECaseCompare cmp=kExact) const
Return true if string ends with the specified string.
TVirtualPad is an abstract base class for the Pad and Canvas classes.