25 printf(
"Could not create an image... exit\n");
33 TString bc = fp +
"/BlackChancery.ttf";
37 img->
DrawText(120, 160,
"Hello World!", 32,
38 gROOT->GetColor(4)->AsHexString(),
42 img->
DrawText(250, 350,
"goodbye cruel world ...", 24, 0,
50 c1 =
new TCanvas(
"rose512",
"examples of image manipulations", 760, 900);
59 img3->
Merge(img2,
"allanon");
65 img4->
Merge(img4,
"tint");
71 img4->
Gradient(0,
"#FF0000 #00FF00 #220000FF", 0, 50, 50, 100, 100);
74 img4->
Bevel(300, 20, 160, 40,
"#ffffffff",
"#fe000000", 3, 0);
75 img4->
DrawLine(10, 100, 100, 10,
"#0000ff", 4);
virtual void SetConstRatio(Bool_t constRatio=kTRUE)
Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual Double_t * Vectorize(UInt_t=256, UInt_t=4, Int_t=0)
virtual UInt_t GetWidth() const
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
An abstract interface to image processing library.
virtual void Merge(const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
virtual void SetImageQuality(EImageQuality lquality)
virtual void SetImage(const Double_t *, UInt_t, UInt_t, TImagePalette *=0)
virtual void FillRectangle(const char *=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void Bevel(Int_t=0, Int_t=0, UInt_t=0, UInt_t=0, const char *="#ffdddddd", const char *="#ff555555", UShort_t=1, Bool_t=kFALSE)
virtual UInt_t GetHeight() const
virtual const TImagePalette & GetPalette() const
virtual TObject * Clone(const char *) const
Make a clone of an object using the Streamer facility.
virtual Int_t GetValue(const char *name, Int_t dflt)
Returns the integer value for a resource.
virtual void SetEditable(Bool_t=kTRUE)
const Double_t * GetArray() const
virtual void DrawText(Int_t=0, Int_t=0, const char *="", Int_t=12, const char *=0, const char *="fixed", EText3DType=TImage::kPlain, const char *=0, Float_t=0)
ClassImp(TMCParticle) void TMCParticle printf(": p=(%7.3f,%7.3f,%9.3f) ;", fPx, fPy, fPz)
virtual TArrayD * GetArray(UInt_t=0, UInt_t=0, TImagePalette *=gWebImagePalette)
A class to define a conversion from pixel values to pixel color.
Array of doubles (64 bits per element).
virtual void DrawLine(UInt_t, UInt_t, UInt_t, UInt_t, const char *="#000000", UInt_t=1)
virtual void Gradient(UInt_t=0, const char *="#FFFFFF #000000", const char *=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
virtual void HSV(UInt_t=0, UInt_t=360, Int_t=0, Int_t=0, Int_t=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
virtual void Tile(UInt_t, UInt_t)