28 printf(
"Could not create an image... exit\n");
35 TString bc =
"BlackChancery.ttf";
42 img->DrawText(250, 350,
"goodbye cruel world ...", 24,
nullptr, ar,
TImage::kPlain, dir +
"/image/fore.xpm");
49 c1 =
new TCanvas(
"rose512",
"examples of image manipulations", 760, 900);
58 img3->Merge(img2,
"allanon");
64 img4->Merge(img4,
"tint");
67 img4->FillRectangle(
"#FF00FF", 20, 220, 40, 40);
70 img4->Gradient(0,
"#FF0000 #00FF00 #220000FF",
nullptr, 50, 50, 100, 100);
73 img4->Bevel(300, 20, 160, 40,
"#ffffffff",
"#fe000000", 3,
false);
74 img4->DrawLine(10, 100, 100, 10,
"#0000ff", 4);
Array of doubles (64 bits per element).
const Double_t * GetArray() const
virtual const TImagePalette & GetPalette() const
virtual void SetImageQuality(EImageQuality lquality)
virtual void SetConstRatio(Bool_t constRatio=kTRUE)
Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.
A class to define a conversion from pixel values to pixel color.
An abstract interface to image processing library.
virtual void SetEditable(Bool_t=kTRUE)
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
virtual UInt_t GetWidth() const
TObject * Clone(const char *="") const override
Make a clone of an object using the Streamer facility.
virtual TArrayD * GetArray(UInt_t=0, UInt_t=0, TImagePalette *=gWebImagePalette)
virtual void SetImage(const Double_t *, UInt_t, UInt_t, TImagePalette *=nullptr)
virtual UInt_t GetHeight() const
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
static const TString & GetTutorialDir()
Get the tutorials directory in the installation. Static utility function.