Logo ROOT   6.14/05
Reference Guide
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
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 = BIT(0), kGreenChan = BIT(1), kBlueChan = BIT(2), kAlphaChan = BIT(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 = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
enum  EDeprecatedStatusBits { kObjInCanvas = BIT(3) }
 
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kIsReferenced = BIT(4), kHasUUID = BIT(5),
  kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(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)
 
virtual TObjectClone (const char *) const
 Make a clone of an object using the Streamer facility. More...
 
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 *=0, 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 *=0, const char *="fixed", EText3DType=TImage::kPlain, const char *=0, 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 *=0, UInt_t=16, UInt_t=16)
 
virtual void FillPolygon (UInt_t, TPoint *, TImage *)
 
virtual void FillRectangle (const char *=0, 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 *=0, 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 *=0)
 
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 *=0, 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)
 
virtual Bool_t IsEditable () const
 
virtual Bool_t IsGray () const
 
virtual Bool_t IsValid () const
 
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 *=0)
 
virtual void SetImage (const TArrayD &, UInt_t, TImagePalette *=0)
 
virtual void SetImage (const TVectorD &, UInt_t, TImagePalette *=0)
 
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)
 
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 TString &name, const TString &title)
 
 TNamed (const TNamed &named)
 TNamed copy ctor. More...
 
virtual ~TNamed ()
 TNamed destructor. More...
 
virtual void Clear (Option_t *option="")
 Set name and title to empty strings (""). More...
 
virtual Int_t Compare (const TObject *obj) const
 Compare two TNamed objects. More...
 
virtual void Copy (TObject &named) const
 Copy this to obj. More...
 
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer. More...
 
virtual const char * GetName () const
 Returns name of object. More...
 
virtual const char * GetTitle () const
 Returns title of object. More...
 
virtual ULong_t Hash () const
 Return hash value for this object. More...
 
virtual Bool_t IsSortable () const
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual void SetName (const char *name)
 Set the name of the TNamed. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Set all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Set the title of the TNamed. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 TObject constructor. More...
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
virtual ~TObject ()
 TObject destructor. More...
 
void AbstractMethod (const char *method) const
 Use this method to implement an "abstract" method that you don't want to leave purely abstract. More...
 
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad. More...
 
virtual void Browse (TBrowser *b)
 Browse object. May be overridden for another default action. More...
 
ULong_t CheckedHash ()
 Checked and record whether for this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object. More...
 
virtual const char * ClassName () const
 Returns name of class to which the object belongs. More...
 
virtual void Delete (Option_t *option="")
 Delete this object. More...
 
virtual Int_t DistancetoPrimitive (Int_t px, Int_t py)
 Computes distance from point (px,py) to the object. More...
 
virtual void Draw (Option_t *option="")
 Default Draw method for all objects. More...
 
virtual void DrawClass () const
 Draw class inheritance tree of the class to which this object belongs. More...
 
virtual TObjectDrawClone (Option_t *option="") const
 Draw a clone of this object in the current selected pad for instance with: gROOT->SetSelectedPad(gPad). More...
 
virtual void Dump () const
 Dump contents of object on stdout. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void Execute (const char *method, const char *params, Int_t *error=0)
 Execute method on this object with the given parameter string, e.g. More...
 
virtual void Execute (TMethod *method, TObjArray *params, Int_t *error=0)
 Execute method on this object with parameters stored in the TObjArray. More...
 
virtual void ExecuteEvent (Int_t event, Int_t px, Int_t py)
 Execute action corresponding to an event at (px,py). More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. More...
 
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes. More...
 
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes. More...
 
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Option_tGetOption () const
 
virtual UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. More...
 
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. More...
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual Bool_t InheritsFrom (const char *classname) const
 Returns kTRUE if object inherits from class "classname". More...
 
virtual Bool_t InheritsFrom (const TClass *cl) const
 Returns kTRUE if object inherits from TClass cl. More...
 
virtual void Inspect () const
 Dump contents of this object in a graphics canvas. More...
 
void InvertBit (UInt_t f)
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
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). More...
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. More...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. More...
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, void *vp)
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual void Paint (Option_t *option="")
 This method must be overridden if a class wants to paint itself. More...
 
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list. More...
 
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory. More...
 
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list. More...
 
void ResetBit (UInt_t f)
 
virtual void SaveAs (const char *filename="", Option_t *option="") const
 Save this object in the file specified by filename. More...
 
virtual void SavePrimitive (std::ostream &out, Option_t *option="")
 Save a primitive as a C++ statement(s) on output stream "out". More...
 
void SetBit (UInt_t f, Bool_t set)
 Set or unset the user status bits as specified in f. More...
 
void SetBit (UInt_t f)
 
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object. More...
 
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
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. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0)
 Write this object to the current directory. More...
 
virtual Int_t Write (const char *name=0, Int_t option=0, Int_t bufsize=0) const
 Write this object to the current directory. More...
 
- Public Member Functions inherited from TAttImage
 TAttImage ()
 TAttImage default constructor. More...
 
 TAttImage (EImageQuality lquality, UInt_t lcompression, Bool_t constRatio)
 TAttImage normal constructor. More...
 
virtual ~TAttImage ()
 TAttImage destructor. More...
 
void Copy (TAttImage &attline) const
 Copy this image attributes to a new attimage. More...
 
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. More...
 
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. More...
 
virtual void SetConstRatio (Bool_t constRatio=kTRUE)
 Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag. More...
 
virtual void SetImageCompression (UInt_t lcompression)
 
virtual void SetImageQuality (EImageQuality lquality)
 
virtual void SetPalette (const TImagePalette *palette)
 Set a new palette for the image. More...
 
virtual void SetPaletteEnabled (Bool_t on=kTRUE)
 
virtual void StartPaletteEditor ()
 Opens a GUI to edit the color palette. More...
 

Static Public Member Functions

static TImageCreate ()
 Create an image. More...
 
static EImageFileTypes GetImageFileTypeFromFilename (const char *opt)
 Return the image type for the extension specified in filename. More...
 
static TImageOpen (const char *file, EImageFileTypes type=kUnknown)
 Open a specified image file. More...
 
static TImageOpen (char **data)
 Create image from XPM data array. More...
 
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. More...
 
static TImageOpen (const char *name, const TArrayD &imageData, UInt_t width, TImagePalette *palette=0)
 Open an image with the specified data in a TArrayD. More...
 
static TImageOpen (const char *name, const TVectorD &imageData, UInt_t width, TImagePalette *palette=0)
 Open an image with the specified data in a TVectorD. More...
 
- Static Public Member Functions inherited from TObject
static Long_t GetDtorOnly ()
 Return destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat flag. More...
 
static void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable. More...
 

Protected Member Functions

 TImage (const char *file)
 
 TImage ()
 
- 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). More...
 
void MakeZombie ()
 

Friends

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

Additional Inherited Members

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

#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.

◆ Clone()

virtual TObject* TImage::Clone ( const char *  newname) const
inlinevirtual

Make a clone of an object using the Streamer facility.

If newname is specified, this will be the name of the new object.

Reimplemented from TNamed.

Reimplemented in TASImage.

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 36 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.

◆ 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 *  = 0,
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 *  = 0,
const char *  = "fixed",
EText3DType  = TImage::kPlain,
const char *  = 0,
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 *  = 0,
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 *  = 0,
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 *  = 0,
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 *  = 0 
)
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 60 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 *  = 0,
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.

◆ 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.

◆ 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 ( const char *  file,
EImageFileTypes  type = kUnknown 
)
static

Open a specified image file.

Definition at line 110 of file TImage.cxx.

◆ Open() [2/5]

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

Create image from XPM data array.

Definition at line 171 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 126 of file TImage.cxx.

◆ Open() [4/5]

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

Open an image with the specified data in a TArrayD.

Definition at line 141 of file TImage.cxx.

◆ Open() [5/5]

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

Open an image with the specified data in a TVectorD.

Definition at line 156 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 = 0 
)
inlinevirtual

Reimplemented in TASImage.

Definition at line 116 of file TImage.h.

◆ SetImage() [2/4]

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

Reimplemented in TASImage.

Definition at line 117 of file TImage.h.

◆ SetImage() [3/4]

virtual void TImage::SetImage ( const TVectorD ,
UInt_t  ,
TImagePalette = 0 
)
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.

◆ 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 Function Documentation

◆ operator+

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

Definition at line 183 of file TImage.cxx.

◆ operator/

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

Definition at line 184 of file TImage.cxx.

Libraries for TImage:
[legend]

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