#include "TImage.h"
#include "TROOT.h"
#include "TPluginManager.h"
ClassImp(TImage)
TImage *TImage::Create()
{
static TPluginHandler *h = 0;
if (!h) {
h = gROOT->GetPluginManager()->FindHandler("TImage");
if (!h) return 0;
if (h->LoadPlugin() == -1) {
h = 0;
return 0;
}
}
TImage *img = (TImage *) h->ExecPlugin(0);
if (img) img->SetName("dummy_image");
return img;
}
TImage *TImage::Open(const char *file, EImageFileTypes type)
{
TImage *img = Create();
if (img)
img->ReadImage(file, type);
return img;
}
TImage *TImage::Open(const char *name, const Double_t *imageData, UInt_t width,
UInt_t height, TImagePalette *palette)
{
TImage *img = Create();
if (img) {
img->SetImage(imageData, width, height, palette);
img->SetName(name);
}
return img;
}
TImage *TImage::Open(const char *name, const TArrayD &imageData, UInt_t width,
TImagePalette *palette)
{
TImage *img = Create();
if (img) {
img->SetImage(imageData, width, palette);
img->SetName(name);
}
return img;
}
TImage *TImage::Open(const char *name, const TVectorD &imageData, UInt_t width,
TImagePalette *palette)
{
TImage *img = Create();
if (img) {
img->SetImage(imageData, width, palette);
img->SetName(name);
}
return img;
}
TImage *TImage::Open(char **data)
{
TImage *img = Create();
if (img) {
img->SetImageBuffer(data, TImage::kXpm);
img->SetName("XPM_image");
}
return img;
}
TImage operator+(const TImage &i1, const TImage &i2) { TImage ret(i1); ret.Append(&i2, "+"); return ret; }
TImage operator/(const TImage &i1, const TImage &i2) { TImage ret(i1); ret.Append(&i2, "/"); return ret; }
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.