Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TImage Class Reference

An abstract interface to image processing library.

It allows for the reading and writing of images in different formats, several image manipulations (scaling, tiling, merging, etc.) and displaying in pads.

The concrete implementation of this class is done by the TASImage class. The methods are documented in that class.

Definition at line 29 of file TImage.h.

Public Types

enum  ECharType { kUTF8 = 0 , kChar = 1 , kUnicode = 4 }
 
enum  EColorChan {
  kRedChan = (1ULL << ( 0 )) , kGreenChan = (1ULL << ( 1 )) , kBlueChan = (1ULL << ( 2 )) , kAlphaChan = (1ULL << ( 3 )) ,
  kAllChan = kRedChan | kGreenChan | kBlueChan | kAlphaChan
}
 
enum  ECoordMode { kCoordModeOrigin = 0 , kCoordModePrevious }
 
enum  EImageFileTypes {
  kXpm = 0 , kZCompressedXpm , kGZCompressedXpm , kPng ,
  kJpeg , kXcf , kPpm , kPnm ,
  kBmp , kIco , kCur , kGif ,
  kTiff , kXbm , kFits , kTga ,
  kXml , kUnknown , kAnimGif
}
 
enum  EText3DType {
  kPlain = 0 , kEmbossed , kSunken , kShadeAbove ,
  kShadeBelow , kEmbossedThick , kSunkenThick , kOutlineAbove ,
  kOutlineBelow , kOutlineFull , k3DTypes
}
 
enum  ETileType { kStretch = 0 , kTile , kStretchY , kStretchX }
 
- Public Types inherited from TObject
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
 
enum  { kSingleKey = (1ULL << ( 0 )) , kOverwrite = (1ULL << ( 1 )) , kWriteDelete = (1ULL << ( 2 )) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = (1ULL << ( 3 )) }
 
enum  EStatusBits {
  kCanDelete = (1ULL << ( 0 )) , kMustCleanup = (1ULL << ( 3 )) , kIsReferenced = (1ULL << ( 4 )) , kHasUUID = (1ULL << ( 5 )) ,
  kCannotPick = (1ULL << ( 6 )) , kNoContextMenu = (1ULL << ( 8 )) , kInvalidObject = (1ULL << ( 13 ))
}
 
- Public Types inherited from TAttImage
enum  EImageQuality {
  kImgDefault = -1 , kImgPoor = 0 , kImgFast = 1 , kImgGood = 2 ,
  kImgBest = 3
}
 

Public Member Functions

 TImage (const TImage &img)
 
 TImage (UInt_t, UInt_t)
 
virtual ~TImage ()
 
virtual void Append (const TImage *, const char *="+", const char *="#00000000")
 
virtual void BeginPaint (Bool_t=kTRUE)
 
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 void Blur (Double_t=3, Double_t=3)
 
TObjectClone (const char *) const override
 Make a clone of an object using the Streamer facility.
 
virtual void CopyArea (TImage *, Int_t, Int_t, UInt_t, UInt_t, Int_t=0, Int_t=0, Int_t=3, EColorChan=kAllChan)
 
virtual void Crop (Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void CropPolygon (UInt_t, TPoint *)
 
virtual void CropSpans (UInt_t, TPoint *, UInt_t *)
 
virtual void DrawBox (Int_t, Int_t, Int_t, Int_t, const char *="#000000", UInt_t=1, Int_t=0)
 
virtual void DrawCellArray (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, UInt_t *)
 
virtual void DrawCircle (Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
 
virtual void DrawCubeBezier (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, const char *="#000000", UInt_t=1)
 
virtual void DrawDashLine (UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, const char *, const char *="#000000", UInt_t=1)
 
virtual void DrawEllips (Int_t, Int_t, Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
 
virtual void DrawEllips2 (Int_t, Int_t, Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
 
virtual void DrawFillArea (UInt_t, TPoint *, const char *="#000000", const char *=nullptr, UInt_t=16, UInt_t=16)
 
virtual void DrawFillArea (UInt_t, TPoint *, TImage *)
 
virtual void DrawLine (UInt_t, UInt_t, UInt_t, UInt_t, const char *="#000000", UInt_t=1)
 
virtual void DrawPolyLine (UInt_t, TPoint *, const char *="#000000", UInt_t=1, TImage::ECoordMode=kCoordModeOrigin)
 
virtual void DrawRectangle (UInt_t, UInt_t, UInt_t, UInt_t, const char *="#000000", UInt_t=1)
 
virtual void DrawSegments (UInt_t, Segment_t *, const char *="#000000", UInt_t=1)
 
virtual void DrawStraightEllips (Int_t, Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
 
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 DrawText (TText *, Int_t=0, Int_t=0)
 
virtual void EndPaint ()
 
virtual void FillPolygon (UInt_t, TPoint *, const char *="#000000", const char *=nullptr, UInt_t=16, UInt_t=16)
 
virtual void FillPolygon (UInt_t, TPoint *, TImage *)
 
virtual void FillRectangle (const char *=nullptr, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void FillSpans (UInt_t, TPoint *, UInt_t *, const char *="#000000", const char *=nullptr, UInt_t=16, UInt_t=16)
 
virtual void FillSpans (UInt_t, TPoint *, UInt_t *, TImage *)
 
virtual void Flip (Int_t=180)
 
virtual void FloodFill (Int_t, Int_t, const char *, const char *, const char *=nullptr)
 
virtual void FromGLBuffer (UChar_t *, UInt_t, UInt_t)
 
virtual void FromPad (TVirtualPad *, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void FromWindow (Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual UInt_tGetArgbArray ()
 
virtual TArrayDGetArray (UInt_t=0, UInt_t=0, TImagePalette *=gWebImagePalette)
 
virtual UInt_t GetHeight () const
 
virtual void GetImageBuffer (char **, int *, EImageFileTypes=TImage::kPng)
 
virtual Pixmap_t GetMask ()
 
virtual TArrayLGetPixels (Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual Pixmap_t GetPixmap ()
 
virtual UInt_tGetRgbaArray ()
 
virtual TImageGetScaledImage () const
 
virtual UInt_tGetScanline (UInt_t)
 
virtual Double_tGetVecArray ()
 
virtual UInt_t GetWidth () const
 
virtual void Gradient (UInt_t=0, const char *="#FFFFFF #000000", const char *=nullptr, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void Gray (Bool_t=kTRUE)
 
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)
 
TClassIsA () const override
 
virtual Bool_t IsEditable () const
 
virtual Bool_t IsGray () const
 
virtual Bool_t IsValid () const
 
void ls (Option_t *option="") const override
 List this image with its attributes.
 
virtual void Merge (const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
 
virtual void Mirror (Bool_t=kTRUE)
 
TImageoperator+= (const TImage &i)
 
TImageoperator/= (const TImage &i)
 
TImageoperator= (const TImage &img)
 
virtual void Pad (const char *="#FFFFFFFF", UInt_t=0, UInt_t=0, UInt_t=0, UInt_t=0)
 
virtual void PaintImage (Drawable_t, Int_t, Int_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0, Option_t *="")
 
virtual void PolyPoint (UInt_t, TPoint *, const char *="#000000", TImage::ECoordMode=kCoordModeOrigin)
 
virtual void PutPixel (Int_t, Int_t, const char *="#000000")
 
virtual void ReadImage (const char *, EImageFileTypes=TImage::kUnknown)
 
virtual void Scale (UInt_t, UInt_t)
 
virtual void SetEditable (Bool_t=kTRUE)
 
virtual void SetImage (const Double_t *, UInt_t, UInt_t, TImagePalette *=nullptr)
 
virtual void SetImage (const TArrayD &, UInt_t, TImagePalette *=nullptr)
 
virtual void SetImage (const TVectorD &, UInt_t, TImagePalette *=nullptr)
 
virtual void SetImage (Pixmap_t, Pixmap_t=0)
 
virtual Bool_t SetImageBuffer (char **, EImageFileTypes=TImage::kPng)
 
virtual void Slice (UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t)
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void Tile (UInt_t, UInt_t)
 
virtual void UnZoom ()
 
virtual Double_tVectorize (UInt_t=256, UInt_t=4, Int_t=0)
 
virtual void WriteImage (const char *, EImageFileTypes=TImage::kUnknown)
 
virtual void Zoom (UInt_t, UInt_t, UInt_t, UInt_t)
 
- Public Member Functions inherited from TNamed
 TNamed ()
 
 TNamed (const char *name, const char *title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor.
 
 TNamed (const TString &name, const TString &title)
 
virtual ~TNamed ()
 TNamed destructor.
 
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
 
TObjectClone (const char *newname="") const override
 Make a clone of an object using the Streamer facility.
 
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
 
void Copy (TObject &named) const override
 Copy this to obj.
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
 
const char * GetName () const override
 Returns name of object.
 
const char * GetTitle () const override
 Returns title of object.
 
ULong_t Hash () const override
 Return hash value for this object.
 
TClassIsA () const override
 
Bool_t IsSortable () const override
 
void ls (Option_t *option="") const override
 List TNamed name and title.
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator.
 
void Print (Option_t *option="") const override
 Print TNamed name and title.
 
virtual void SetName (const char *name)
 Set the name of the TNamed.
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title).
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed.
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
 
void Streamer (TBuffer &) override
 Stream an object of class TObject.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor.
 
 TObject (const TObject &object)
 TObject copy ctor.
 
virtual ~TObject ()
 TObject destructor.
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract.
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action.
 
ULong_t CheckedHash ()
 Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs.
 
virtual void Delete (Option_t *option="")
 Delete this object.
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object.
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects.
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs.
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).
 
virtual void Dump () const
 Dump contents of object on stdout.
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message.
 
virtual void Execute (const char *method, const char *params, Int_t *error=nullptr)
 Execute method on this object with the given parameter string, e.g.
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=nullptr)
 Execute method on this object with parameters stored in the TObjArray.
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py).
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
 
virtual const char * GetIconName () const
 Returns mime type name of object.
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py).
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id.
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
 
Bool_t HasInconsistentHash () const
 Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message.
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname".
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl.
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas.
 
void InvertBit (UInt_t f)
 
Bool_t IsDestructed () const
 IsDestructed.
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory).
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects).
 
R__ALWAYS_INLINE Bool_t IsOnHeap () const
 
R__ALWAYS_INLINE Bool_t IsZombie () const
 
void MayNotUse (const char *method) const
 Use this method to signal that a method (defined in a base class) may not be called in a derived class (in principle against good design since a child class should not provide less functionality than its parent, however, sometimes it is necessary).
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification.
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
 
void operator delete (void *ptr)
 Operator delete.
 
void operator delete[] (void *ptr)
 Operator delete [].
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *vp)
 
void * operator new[] (size_t sz)
 
void * operator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator.
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself.
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename.
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out".
 
void SetBit (UInt_t f)
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f.
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
 
R__ALWAYS_INLINE Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory.
 
virtual Int_t Write (const char *name=nullptr, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory.
 
- Public Member Functions inherited from TAttImage
 TAttImage ()
 TAttImage default constructor.
 
 TAttImage (EImageQuality lquality, UInt_t lcompression, Bool_t constRatio)
 TAttImage normal constructor.
 
virtual ~TAttImage ()
 TAttImage destructor.
 
void Copy (TAttImage &attline) const
 Copy this image attributes to a new attimage.
 
virtual void EditorClosed ()
 
Bool_t GetConstRatio () const
 
UInt_t GetImageCompression () const
 
EImageQuality GetImageQuality () const
 
virtual const TImagePaletteGetPalette () const
 
Bool_t IsPaletteEnabled () const
 
virtual void ResetAttImage (Option_t *option="")
 Reset this image attributes to default values.
 
virtual void SaveImageAttributes (std::ostream &out, const char *name, EImageQuality qualdef=kImgDefault, UInt_t comprdef=0, Bool_t constRatiodef=kTRUE)
 Save image attributes as C++ statement(s) on output stream, but not the palette.
 
virtual void SetConstRatio (Bool_t constRatio=kTRUE)
 Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.
 
virtual void SetImageCompression (UInt_t lcompression)
 
virtual void SetImageQuality (EImageQuality lquality)
 
virtual void SetPalette (const TImagePalette *palette)
 Set a new palette for the image.
 
virtual void SetPaletteEnabled (Bool_t on=kTRUE)
 
virtual void StartPaletteEditor ()
 Opens a GUI to edit the color palette.
 
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
 

Static Public Member Functions

static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static TImageCreate ()
 Create an image.
 
static const char * DeclFileName ()
 
static EImageFileTypes GetImageFileTypeFromFilename (const char *opt)
 Return the image type for the extension specified in filename.
 
static TImageOpen (char **data)
 Create image from XPM data array.
 
static TImageOpen (const char *file, EImageFileTypes type=kUnknown)
 Open a specified image file.
 
static TImageOpen (const char *name, const Double_t *imageData, UInt_t width, UInt_t height, TImagePalette *palette)
 Open an image with the specified data in a Double_t array.
 
static TImageOpen (const char *name, const TArrayD &imageData, UInt_t width, TImagePalette *palette=nullptr)
 Open an image with the specified data in a TArrayD.
 
static TImageOpen (const char *name, const TVectorD &imageData, UInt_t width, TImagePalette *palette=nullptr)
 Open an image with the specified data in a TVectorD.
 
- Static Public Member Functions inherited from TNamed
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
- Static Public Member Functions inherited from TObject
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
 
static Bool_t GetObjectStat ()
 Get status of object stat flag.
 
static void SetDtorOnly (void *obj)
 Set destructor only flag.
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.
 
- Static Public Member Functions inherited from TAttImage
static TClassClass ()
 
static const char * Class_Name ()
 
static constexpr Version_t Class_Version ()
 
static const char * DeclFileName ()
 

Protected Member Functions

 TImage ()
 
 TImage (const char *file)
 
- Protected Member Functions inherited from TObject
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
 
void MakeZombie ()
 

Friends

TImage operator+ (const TImage &i1, const TImage &s2)
 
TImage operator/ (const TImage &i1, const TImage &s2)
 

Additional Inherited Members

- Protected Types inherited from TObject
enum  { kOnlyPrepStep = (1ULL << ( 3 )) }
 
- Protected Attributes inherited from TNamed
TString fName
 
TString fTitle
 
- Protected Attributes inherited from TAttImage
Bool_t fConstRatio {kFALSE}
 keep aspect ratio of image on the screen
 
UInt_t fImageCompression {0}
 compression [0 .. 100] 0: no compression
 
EImageQuality fImageQuality {kImgDefault}
 OPTION={GetMethod="GetImageQuality";SetMethod="SetImageQuality";Items=(kImgDefault="Default",kImgPoor="Poor",kImgFast="Fast",kImgGood="Good",kImgBest="Best")}
 
TImagePalette fPalette
 color palette for value -> color conversion
 
TPaletteEditorfPaletteEditor {nullptr}
 ! GUI to edit the color palette
 
Bool_t fPaletteEnabled {kFALSE}
 ! kTRUE - palette is drawn on the image
 

#include <TImage.h>

Inheritance diagram for TImage:
[legend]

Member Enumeration Documentation

◆ ECharType

Enumerator
kUTF8 
kChar 
kUnicode 

Definition at line 72 of file TImage.h.

◆ EColorChan

Enumerator
kRedChan 
kGreenChan 
kBlueChan 
kAlphaChan 
kAllChan 

Definition at line 90 of file TImage.h.

◆ ECoordMode

Enumerator
kCoordModeOrigin 
kCoordModePrevious 

Definition at line 85 of file TImage.h.

◆ EImageFileTypes

Enumerator
kXpm 
kZCompressedXpm 
kGZCompressedXpm 
kPng 
kJpeg 
kXcf 
kPpm 
kPnm 
kBmp 
kIco 
kCur 
kGif 
kTiff 
kXbm 
kFits 
kTga 
kXml 
kUnknown 
kAnimGif 

Definition at line 36 of file TImage.h.

◆ EText3DType

Enumerator
kPlain 
kEmbossed 
kSunken 
kShadeAbove 
kShadeBelow 
kEmbossedThick 
kSunkenThick 
kOutlineAbove 
kOutlineBelow 
kOutlineFull 
k3DTypes 

Definition at line 58 of file TImage.h.

◆ ETileType

Enumerator
kStretch 
kTile 
kStretchY 
kStretchX 

Definition at line 78 of file TImage.h.

Constructor & Destructor Documentation

◆ TImage() [1/4]

TImage::TImage ( const char *  file)
inlineprotected

Definition at line 99 of file TImage.h.

◆ TImage() [2/4]

TImage::TImage ( )
inlineprotected

Definition at line 100 of file TImage.h.

◆ TImage() [3/4]

TImage::TImage ( const TImage img)
inline

Definition at line 103 of file TImage.h.

◆ TImage() [4/4]

TImage::TImage ( UInt_t  ,
UInt_t   
)
inline

Definition at line 106 of file TImage.h.

◆ ~TImage()

virtual TImage::~TImage ( )
inlinevirtual

Definition at line 108 of file TImage.h.

Member Function Documentation

◆ Append()

virtual void TImage::Append ( const TImage ,
const char *  = "+",
const char *  = "#00000000" 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 175 of file TImage.h.

◆ BeginPaint()

virtual void TImage::BeginPaint ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented in TASImage.

Definition at line 182 of file TImage.h.

◆ Bevel()

virtual void TImage::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 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 178 of file TImage.h.

◆ Blur()

virtual void TImage::Blur ( Double_t  = 3,
Double_t  = 3 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 158 of file TImage.h.

◆ Class()

static TClass * TImage::Class ( )
static
Returns
TClass describing this class

◆ Class_Name()

static const char * TImage::Class_Name ( )
static
Returns
Name of this class

◆ Class_Version()

static constexpr Version_t TImage::Class_Version ( )
inlinestaticconstexpr
Returns
Version of this class

Definition at line 260 of file TImage.h.

◆ Clone()

TObject * TImage::Clone ( const char *  newname) const
inlineoverridevirtual

Make a clone of an object using the Streamer facility.

If the object derives from TNamed, this function is called by TNamed::Clone. TNamed::Clone uses the optional argument to set a new name to the newly created object.

If the object class has a DirectoryAutoAdd function, it will be called at the end of the function with the parameter gDirectory. This usually means that the object will be appended to the current ROOT directory.

Reimplemented from TObject.

Definition at line 111 of file TImage.h.

◆ CopyArea()

virtual void TImage::CopyArea ( TImage ,
Int_t  ,
Int_t  ,
UInt_t  ,
UInt_t  ,
Int_t  = 0,
Int_t  = 0,
Int_t  = 3,
EColorChan  = kAllChan 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 215 of file TImage.h.

◆ Create()

TImage * TImage::Create ( )
static

Create an image.

Use ReadImage() or SetImage() to initialize the image.

Definition at line 35 of file TImage.cxx.

◆ Crop()

virtual void TImage::Crop ( Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 151 of file TImage.h.

◆ CropPolygon()

virtual void TImage::CropPolygon ( UInt_t  ,
TPoint  
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 207 of file TImage.h.

◆ CropSpans()

virtual void TImage::CropSpans ( UInt_t  ,
TPoint ,
UInt_t  
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 214 of file TImage.h.

◆ DeclFileName()

static const char * TImage::DeclFileName ( )
inlinestatic
Returns
Name of the file containing the class declaration

Definition at line 260 of file TImage.h.

◆ DrawBox()

virtual void TImage::DrawBox ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
const char *  = "#000000",
UInt_t  = 1,
Int_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 188 of file TImage.h.

◆ DrawCellArray()

virtual void TImage::DrawCellArray ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
UInt_t  
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 217 of file TImage.h.

◆ DrawCircle()

virtual void TImage::DrawCircle ( Int_t  ,
Int_t  ,
Int_t  ,
const char *  = "#000000",
Int_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 221 of file TImage.h.

◆ DrawCubeBezier()

virtual void TImage::DrawCubeBezier ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
const char *  = "#000000",
UInt_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 219 of file TImage.h.

◆ DrawDashLine()

virtual void TImage::DrawDashLine ( UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t  ,
const char *  ,
const char *  = "#000000",
UInt_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 186 of file TImage.h.

◆ DrawEllips()

virtual void TImage::DrawEllips ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
const char *  = "#000000",
Int_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 222 of file TImage.h.

◆ DrawEllips2()

virtual void TImage::DrawEllips2 ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
const char *  = "#000000",
Int_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 223 of file TImage.h.

◆ DrawFillArea() [1/2]

virtual void TImage::DrawFillArea ( UInt_t  ,
TPoint ,
const char *  = "#000000",
const char *  = nullptr,
UInt_t  = 16,
UInt_t  = 16 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 208 of file TImage.h.

◆ DrawFillArea() [2/2]

virtual void TImage::DrawFillArea ( UInt_t  ,
TPoint ,
TImage  
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 210 of file TImage.h.

◆ DrawLine()

virtual void TImage::DrawLine ( UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t  ,
const char *  = "#000000",
UInt_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 184 of file TImage.h.

◆ DrawPolyLine()

virtual void TImage::DrawPolyLine ( UInt_t  ,
TPoint ,
const char *  = "#000000",
UInt_t  = 1,
TImage::ECoordMode  = kCoordModeOrigin 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 194 of file TImage.h.

◆ DrawRectangle()

virtual void TImage::DrawRectangle ( UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t  ,
const char *  = "#000000",
UInt_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 190 of file TImage.h.

◆ DrawSegments()

virtual void TImage::DrawSegments ( UInt_t  ,
Segment_t ,
const char *  = "#000000",
UInt_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 199 of file TImage.h.

◆ DrawStraightEllips()

virtual void TImage::DrawStraightEllips ( Int_t  ,
Int_t  ,
Int_t  ,
Int_t  ,
const char *  = "#000000",
Int_t  = 1 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 220 of file TImage.h.

◆ DrawText() [1/2]

virtual void TImage::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 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 200 of file TImage.h.

◆ DrawText() [2/2]

virtual void TImage::DrawText ( TText ,
Int_t  = 0,
Int_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 203 of file TImage.h.

◆ EndPaint()

virtual void TImage::EndPaint ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 183 of file TImage.h.

◆ FillPolygon() [1/2]

virtual void TImage::FillPolygon ( UInt_t  ,
TPoint ,
const char *  = "#000000",
const char *  = nullptr,
UInt_t  = 16,
UInt_t  = 16 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 204 of file TImage.h.

◆ FillPolygon() [2/2]

virtual void TImage::FillPolygon ( UInt_t  ,
TPoint ,
TImage  
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 206 of file TImage.h.

◆ FillRectangle()

virtual void TImage::FillRectangle ( const char *  = nullptr,
Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 192 of file TImage.h.

◆ FillSpans() [1/2]

virtual void TImage::FillSpans ( UInt_t  ,
TPoint ,
UInt_t ,
const char *  = "#000000",
const char *  = nullptr,
UInt_t  = 16,
UInt_t  = 16 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 211 of file TImage.h.

◆ FillSpans() [2/2]

virtual void TImage::FillSpans ( UInt_t  ,
TPoint ,
UInt_t ,
TImage  
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 213 of file TImage.h.

◆ Flip()

virtual void TImage::Flip ( Int_t  = 180)
inlinevirtual

Reimplemented in TASImage.

Definition at line 131 of file TImage.h.

◆ FloodFill()

virtual void TImage::FloodFill ( Int_t  ,
Int_t  ,
const char *  ,
const char *  ,
const char *  = nullptr 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 218 of file TImage.h.

◆ FromGLBuffer()

virtual void TImage::FromGLBuffer ( UChar_t ,
UInt_t  ,
UInt_t   
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 245 of file TImage.h.

◆ FromPad()

virtual void TImage::FromPad ( TVirtualPad ,
Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 122 of file TImage.h.

◆ FromWindow()

virtual void TImage::FromWindow ( Drawable_t  ,
Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 244 of file TImage.h.

◆ GetArgbArray()

virtual UInt_t * TImage::GetArgbArray ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 237 of file TImage.h.

◆ GetArray()

virtual TArrayD * TImage::GetArray ( UInt_t  = 0,
UInt_t  = 0,
TImagePalette = gWebImagePalette 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 234 of file TImage.h.

◆ GetHeight()

virtual UInt_t TImage::GetHeight ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 229 of file TImage.h.

◆ GetImageBuffer()

virtual void TImage::GetImageBuffer ( char **  ,
int ,
EImageFileTypes  = TImage::kPng 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 241 of file TImage.h.

◆ GetImageFileTypeFromFilename()

TImage::EImageFileTypes TImage::GetImageFileTypeFromFilename ( const char *  filename)
static

Return the image type for the extension specified in filename.

Case of the extension is ignored. E.g. for a filename "myimg.GIF", kGif is returned. kAnimGif is returned if the file extension is ".anim.gif".

Definition at line 59 of file TImage.cxx.

◆ GetMask()

virtual Pixmap_t TImage::GetMask ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 236 of file TImage.h.

◆ GetPixels()

virtual TArrayL * TImage::GetPixels ( Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 233 of file TImage.h.

◆ GetPixmap()

virtual Pixmap_t TImage::GetPixmap ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 235 of file TImage.h.

◆ GetRgbaArray()

virtual UInt_t * TImage::GetRgbaArray ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 238 of file TImage.h.

◆ GetScaledImage()

virtual TImage * TImage::GetScaledImage ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 231 of file TImage.h.

◆ GetScanline()

virtual UInt_t * TImage::GetScanline ( UInt_t  )
inlinevirtual

Reimplemented in TASImage.

Definition at line 240 of file TImage.h.

◆ GetVecArray()

virtual Double_t * TImage::GetVecArray ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 239 of file TImage.h.

◆ GetWidth()

virtual UInt_t TImage::GetWidth ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 228 of file TImage.h.

◆ Gradient()

virtual void TImage::Gradient ( UInt_t  = 0,
const char *  = "#FFFFFF #000000",
const char *  = nullptr,
Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 168 of file TImage.h.

◆ Gray()

virtual void TImage::Gray ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented in TASImage.

Definition at line 134 of file TImage.h.

◆ HSV()

virtual void TImage::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 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 164 of file TImage.h.

◆ IsA()

TClass * TImage::IsA ( ) const
inlineoverridevirtual
Returns
TClass describing current object

Reimplemented from TObject.

Definition at line 260 of file TImage.h.

◆ IsEditable()

virtual Bool_t TImage::IsEditable ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 226 of file TImage.h.

◆ IsGray()

virtual Bool_t TImage::IsGray ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 135 of file TImage.h.

◆ IsValid()

virtual Bool_t TImage::IsValid ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 230 of file TImage.h.

◆ ls()

void TImage::ls ( Option_t option = "") const
overridevirtual

List this image with its attributes.

Reimplemented from TObject.

Definition at line 109 of file TImage.cxx.

◆ Merge()

virtual void TImage::Merge ( const TImage ,
const char *  = "alphablend",
Int_t  = 0,
Int_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 172 of file TImage.h.

◆ Mirror()

virtual void TImage::Mirror ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented in TASImage.

Definition at line 138 of file TImage.h.

◆ Open() [1/5]

TImage * TImage::Open ( char **  data)
static

Create image from XPM data array.

Definition at line 179 of file TImage.cxx.

◆ Open() [2/5]

TImage * TImage::Open ( const char *  file,
EImageFileTypes  type = kUnknown 
)
static

Open a specified image file.

Definition at line 118 of file TImage.cxx.

◆ Open() [3/5]

TImage * TImage::Open ( const char *  name,
const Double_t imageData,
UInt_t  width,
UInt_t  height,
TImagePalette palette 
)
static

Open an image with the specified data in a Double_t array.

Definition at line 134 of file TImage.cxx.

◆ Open() [4/5]

TImage * TImage::Open ( const char *  name,
const TArrayD imageData,
UInt_t  width,
TImagePalette palette = nullptr 
)
static

Open an image with the specified data in a TArrayD.

Definition at line 149 of file TImage.cxx.

◆ Open() [5/5]

TImage * TImage::Open ( const char *  name,
const TVectorD imageData,
UInt_t  width,
TImagePalette palette = nullptr 
)
static

Open an image with the specified data in a TVectorD.

Definition at line 164 of file TImage.cxx.

◆ operator+=()

TImage & TImage::operator+= ( const TImage i)
inline

Definition at line 255 of file TImage.h.

◆ operator/=()

TImage & TImage::operator/= ( const TImage i)
inline

Definition at line 256 of file TImage.h.

◆ operator=()

TImage & TImage::operator= ( const TImage img)
inline

Definition at line 104 of file TImage.h.

◆ Pad()

virtual void TImage::Pad ( const char *  = "#FFFFFFFF",
UInt_t  = 0,
UInt_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 154 of file TImage.h.

◆ PaintImage()

virtual void TImage::PaintImage ( Drawable_t  ,
Int_t  ,
Int_t  ,
Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0,
Option_t = "" 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 243 of file TImage.h.

◆ PolyPoint()

virtual void TImage::PolyPoint ( UInt_t  ,
TPoint ,
const char *  = "#000000",
TImage::ECoordMode  = kCoordModeOrigin 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 197 of file TImage.h.

◆ PutPixel()

virtual void TImage::PutPixel ( Int_t  ,
Int_t  ,
const char *  = "#000000" 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 196 of file TImage.h.

◆ ReadImage()

virtual void TImage::ReadImage ( const char *  ,
EImageFileTypes  = TImage::kUnknown 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 114 of file TImage.h.

◆ Scale()

virtual void TImage::Scale ( UInt_t  ,
UInt_t   
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 141 of file TImage.h.

◆ SetEditable()

virtual void TImage::SetEditable ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented in TASImage.

Definition at line 225 of file TImage.h.

◆ SetImage() [1/4]

virtual void TImage::SetImage ( const Double_t ,
UInt_t  ,
UInt_t  ,
TImagePalette = nullptr 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 116 of file TImage.h.

◆ SetImage() [2/4]

virtual void TImage::SetImage ( const TArrayD ,
UInt_t  ,
TImagePalette = nullptr 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 117 of file TImage.h.

◆ SetImage() [3/4]

virtual void TImage::SetImage ( const TVectorD ,
UInt_t  ,
TImagePalette = nullptr 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 118 of file TImage.h.

◆ SetImage() [4/4]

virtual void TImage::SetImage ( Pixmap_t  ,
Pixmap_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 119 of file TImage.h.

◆ SetImageBuffer()

virtual Bool_t TImage::SetImageBuffer ( char **  ,
EImageFileTypes  = TImage::kPng 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 242 of file TImage.h.

◆ Slice()

virtual void TImage::Slice ( UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t   
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 144 of file TImage.h.

◆ Streamer()

void TImage::Streamer ( TBuffer R__b)
overridevirtual

Stream an object of class TObject.

Reimplemented from TObject.

◆ StreamerNVirtual()

void TImage::StreamerNVirtual ( TBuffer ClassDef_StreamerNVirtual_b)
inline

Definition at line 260 of file TImage.h.

◆ Tile()

virtual void TImage::Tile ( UInt_t  ,
UInt_t   
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 148 of file TImage.h.

◆ UnZoom()

virtual void TImage::UnZoom ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 125 of file TImage.h.

◆ Vectorize()

virtual Double_t * TImage::Vectorize ( UInt_t  = 256,
UInt_t  = 4,
Int_t  = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 161 of file TImage.h.

◆ WriteImage()

virtual void TImage::WriteImage ( const char *  ,
EImageFileTypes  = TImage::kUnknown 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 115 of file TImage.h.

◆ Zoom()

virtual void TImage::Zoom ( UInt_t  ,
UInt_t  ,
UInt_t  ,
UInt_t   
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 128 of file TImage.h.

Friends And Related Symbol Documentation

◆ operator+

TImage operator+ ( const TImage i1,
const TImage s2 
)
friend

Definition at line 191 of file TImage.cxx.

◆ operator/

TImage operator/ ( const TImage i1,
const TImage s2 
)
friend

Definition at line 192 of file TImage.cxx.

Libraries for TImage:

The documentation for this class was generated from the following files: