ROOT  6.06/09
Reference Guide
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. End_Html

Definition at line 45 of file TImage.h.

Public Types

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  ECharType { kUTF8 = 0, kChar = 1, kUnicode = 4 }
 
enum  ETileType { kStretch = 0, kTile, kStretchY, kStretchX }
 
enum  ECoordMode { kCoordModeOrigin = 0, kCoordModePrevious }
 
enum  EColorChan {
  kRedChan = BIT(0), kGreenChan = BIT(1), kBlueChan = BIT(2), kAlphaChan = BIT(3),
  kAllChan = kRedChan | kGreenChan | kBlueChan | kAlphaChan
}
 
- Public Types inherited from TObject
enum  EStatusBits {
  kCanDelete = BIT(0), kMustCleanup = BIT(3), kObjInCanvas = BIT(3), kIsReferenced = BIT(4),
  kHasUUID = BIT(5), kCannotPick = BIT(6), kNoContextMenu = BIT(8), kInvalidObject = BIT(13)
}
 
enum  { kIsOnHeap = 0x01000000, kNotDeleted = 0x02000000, kZombie = 0x04000000, kBitMask = 0x00ffffff }
 
enum  { kSingleKey = BIT(0), kOverwrite = BIT(1), kWriteDelete = BIT(2) }
 
- Public Types inherited from TAttImage
enum  EImageQuality {
  kImgDefault = -1, kImgPoor = 0, kImgFast = 1, kImgGood = 2,
  kImgBest = 3
}
 

Public Member Functions

 TImage (const TImage &img)
 
TImageoperator= (const TImage &img)
 
 TImage (UInt_t, UInt_t)
 
virtual ~TImage ()
 
virtual TObjectClone (const char *) const
 Make a clone of an object using the Streamer facility. More...
 
virtual void ReadImage (const char *, EImageFileTypes=TImage::kUnknown)
 
virtual void WriteImage (const char *, EImageFileTypes=TImage::kUnknown)
 
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 void FromPad (TVirtualPad *, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void UnZoom ()
 
virtual void Zoom (UInt_t, UInt_t, UInt_t, UInt_t)
 
virtual void Flip (Int_t=180)
 
virtual void Gray (Bool_t=kTRUE)
 
virtual Bool_t IsGray () const
 
virtual void Mirror (Bool_t=kTRUE)
 
virtual void Scale (UInt_t, UInt_t)
 
virtual void Slice (UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t)
 
virtual void Tile (UInt_t, UInt_t)
 
virtual void Crop (Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void Pad (const char *="#FFFFFFFF", UInt_t=0, UInt_t=0, UInt_t=0, UInt_t=0)
 
virtual void Blur (Double_t=3, Double_t=3)
 
virtual Double_tVectorize (UInt_t=256, UInt_t=4, Int_t=0)
 
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 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 Merge (const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
 
virtual void Append (const TImage *, const char *="+", const char *="#00000000")
 
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 BeginPaint (Bool_t=kTRUE)
 
virtual void EndPaint ()
 
virtual void DrawLine (UInt_t, UInt_t, UInt_t, UInt_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 DrawBox (Int_t, Int_t, Int_t, Int_t, const char *="#000000", UInt_t=1, Int_t=0)
 
virtual void DrawRectangle (UInt_t, UInt_t, UInt_t, UInt_t, const char *="#000000", UInt_t=1)
 
virtual void FillRectangle (const char *=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void DrawPolyLine (UInt_t, TPoint *, const char *="#000000", UInt_t=1, TImage::ECoordMode=kCoordModeOrigin)
 
virtual void PutPixel (Int_t, Int_t, const char *="#000000")
 
virtual void PolyPoint (UInt_t, TPoint *, const char *="#000000", TImage::ECoordMode=kCoordModeOrigin)
 
virtual void DrawSegments (UInt_t, Segment_t *, const char *="#000000", UInt_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 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 CropPolygon (UInt_t, TPoint *)
 
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 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 CropSpans (UInt_t, TPoint *, UInt_t *)
 
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 DrawCellArray (Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, UInt_t *)
 
virtual void FloodFill (Int_t, Int_t, const char *, const char *, const char *=0)
 
virtual void DrawCubeBezier (Int_t, Int_t, Int_t, Int_t, Int_t, Int_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 DrawCircle (Int_t, Int_t, Int_t, const char *="#000000", Int_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 SetEditable (Bool_t=kTRUE)
 
virtual Bool_t IsEditable () const
 
virtual UInt_t GetWidth () const
 
virtual UInt_t GetHeight () const
 
virtual Bool_t IsValid () const
 
virtual TImageGetScaledImage () const
 
virtual TArrayLGetPixels (Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual TArrayDGetArray (UInt_t=0, UInt_t=0, TImagePalette *=gWebImagePalette)
 
virtual Pixmap_t GetPixmap ()
 
virtual Pixmap_t GetMask ()
 
virtual UInt_tGetArgbArray ()
 
virtual UInt_tGetRgbaArray ()
 
virtual Double_tGetVecArray ()
 
virtual UInt_tGetScanline (UInt_t)
 
virtual void GetImageBuffer (char **, int *, EImageFileTypes=TImage::kPng)
 
virtual Bool_t SetImageBuffer (char **, EImageFileTypes=TImage::kPng)
 
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 FromWindow (Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
 
virtual void FromGLBuffer (UChar_t *, UInt_t, UInt_t)
 
TImageoperator+= (const TImage &i)
 
TImageoperator/= (const TImage &i)
 
- 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)
 
TNamedoperator= (const TNamed &rhs)
 TNamed assignment operator. More...
 
virtual ~TNamed ()
 
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 SetName (const char *name)
 Change (i.e. More...
 
virtual void SetNameTitle (const char *name, const char *title)
 Change (i.e. set) all the TNamed parameters (name and title). More...
 
virtual void SetTitle (const char *title="")
 Change (i.e. set) the title of the TNamed. More...
 
virtual void ls (Option_t *option="") const
 List TNamed name and title. More...
 
virtual void Print (Option_t *option="") const
 Print TNamed name and title. More...
 
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject. More...
 
- Public Member Functions inherited from TObject
 TObject ()
 
 TObject (const TObject &object)
 TObject copy ctor. More...
 
TObjectoperator= (const TObject &rhs)
 TObject assignment operator. More...
 
virtual ~TObject ()
 TObject destructor. 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...
 
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 pad. More...
 
virtual void Dump () const
 Dump contents of object on stdout. 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 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 UInt_t GetUniqueID () const
 Return the unique object id. More...
 
virtual const char * GetIconName () const
 Returns mime type name of object. More...
 
virtual Option_tGetOption () const
 
virtual char * GetObjectInfo (Int_t px, Int_t py) const
 Returns string containing info about the object at position (px,py). More...
 
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out. 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...
 
virtual Bool_t IsFolder () const
 Returns kTRUE in case object contains browsable objects (like containers or lists of other objects). More...
 
virtual Bool_t IsEqual (const TObject *obj) const
 Default equal comparison (objects are equal if they have the same address in memory). More...
 
Bool_t IsOnHeap () const
 
Bool_t IsZombie () const
 
virtual Bool_t Notify ()
 This method must be overridden to handle object notification. 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...
 
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...
 
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 UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked. 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...
 
voidoperator new (size_t sz)
 
voidoperator new[] (size_t sz)
 
voidoperator new (size_t sz, void *vp)
 
voidoperator new[] (size_t sz, void *vp)
 
void operator delete (void *ptr)
 Operator delete. More...
 
void operator delete[] (void *ptr)
 Operator delete []. 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)
 
void ResetBit (UInt_t f)
 
Bool_t TestBit (UInt_t f) const
 
Int_t TestBits (UInt_t f) const
 
void InvertBit (UInt_t f)
 
virtual void Info (const char *method, const char *msgfmt,...) const
 Issue info message. More...
 
virtual void Warning (const char *method, const char *msgfmt,...) const
 Issue warning message. More...
 
virtual void Error (const char *method, const char *msgfmt,...) const
 Issue error message. More...
 
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message. More...
 
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message. 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...
 
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...
 
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete. More...
 
- Public Member Functions inherited from TAttImage
 TAttImage ()
 kTRUE - palette is drawn on the image 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...
 
Bool_t GetConstRatio () const
 
UInt_t GetImageCompression () const
 
EImageQuality GetImageQuality () const
 
virtual const TImagePaletteGetPalette () 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 SetPaletteEnabled (Bool_t on=kTRUE)
 
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 StartPaletteEditor ()
 Opens a GUI to edit the color palette. More...
 
virtual void EditorClosed ()
 
Bool_t IsPaletteEnabled () const
 

Static Public Member Functions

static EImageFileTypes GetImageFileTypeFromFilename (const char *opt)
 Return the image type for the extension specified in filename. More...
 
static TImageCreate ()
 
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 void SetDtorOnly (void *obj)
 Set destructor only flag. More...
 
static Bool_t GetObjectStat ()
 Get status of object stat 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
void MakeZombie ()
 
virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected). More...
 

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
EImageQuality fImageQuality
 
UInt_t fImageCompression
 
Bool_t fConstRatio
 
TImagePalette fPalette
 
TPaletteEditorfPaletteEditor
 
Bool_t fPaletteEnabled
 GUI to edit the color palette. More...
 

#include <TImage.h>

+ Inheritance diagram for TImage:
+ Collaboration diagram for TImage:

Member Enumeration Documentation

Enumerator
kUTF8 
kChar 
kUnicode 

Definition at line 88 of file TImage.h.

Enumerator
kRedChan 
kGreenChan 
kBlueChan 
kAlphaChan 
kAllChan 

Definition at line 106 of file TImage.h.

Enumerator
kCoordModeOrigin 
kCoordModePrevious 

Definition at line 101 of file TImage.h.

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

Definition at line 52 of file TImage.h.

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

Definition at line 74 of file TImage.h.

Enumerator
kStretch 
kTile 
kStretchY 
kStretchX 

Definition at line 94 of file TImage.h.

Constructor & Destructor Documentation

TImage::TImage ( const char *  file)
inlineprotected

Definition at line 115 of file TImage.h.

TImage::TImage ( )
inlineprotected

Definition at line 116 of file TImage.h.

TImage::TImage ( const TImage img)
inline

Definition at line 119 of file TImage.h.

TImage::TImage ( UInt_t  ,
UInt_t   
)
inline

Definition at line 122 of file TImage.h.

virtual TImage::~TImage ( )
inlinevirtual

Definition at line 124 of file TImage.h.

Member Function Documentation

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

Reimplemented in TASImage.

Definition at line 191 of file TImage.h.

Referenced by operator+(), operator+=(), operator/(), operator/=(), and TRootSniffer::ProduceImage().

virtual void TImage::BeginPaint ( Bool_t  = kTRUE)
inlinevirtual
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 194 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 174 of file TImage.h.

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 127 of file TImage.h.

Referenced by TGSpeedo::DoRedraw(), TGSpeedo::DrawNeedle(), and TGSpeedo::DrawText().

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 231 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 167 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 223 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 230 of file TImage.h.

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 204 of file TImage.h.

Referenced by TImageDump::DrawBox(), TImageDump::DrawFrame(), and TRootBrowserLite::ExecuteDefaultAction().

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 233 of file TImage.h.

Referenced by TImageDump::CellArrayEnd().

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

Reimplemented in TASImage.

Definition at line 237 of file TImage.h.

Referenced by TImageDump::DrawPolyMarker().

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 235 of file TImage.h.

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 202 of file TImage.h.

Referenced by TImageDump::DrawDashPolyLine(), and TImageDump::DrawPS().

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 238 of file TImage.h.

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 239 of file TImage.h.

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 224 of file TImage.h.

Referenced by TImageDump::DrawFrame(), TImageDump::DrawPolyMarker(), and TImageDump::DrawPS().

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

Reimplemented in TASImage.

Definition at line 226 of file TImage.h.

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 200 of file TImage.h.

Referenced by TGSpeedo::DoRedraw(), TGSpeedo::DrawNeedle(), TImageDump::DrawPolyMarker(), and TImageDump::DrawPS().

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

Reimplemented in TASImage.

Definition at line 210 of file TImage.h.

Referenced by TImageDump::DrawPolyMarker(), and TImageDump::DrawPS().

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

Reimplemented in TASImage.

Definition at line 215 of file TImage.h.

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 236 of file TImage.h.

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 216 of file TImage.h.

Referenced by TGSpeedo::Build(), TGSpeedo::DoRedraw(), TGSpeedo::DrawText(), and TImageDump::Text().

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

Reimplemented in TASImage.

Definition at line 219 of file TImage.h.

virtual void TImage::EndPaint ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 199 of file TImage.h.

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 220 of file TImage.h.

Referenced by TImageDump::DrawPolyMarker(), and TImageDump::DrawPS().

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

Reimplemented in TASImage.

Definition at line 222 of file TImage.h.

virtual void TImage::FillRectangle ( const char *  = 0,
Int_t  = 0,
Int_t  = 0,
UInt_t  = 0,
UInt_t  = 0 
)
inlinevirtual
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 227 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 229 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 147 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 234 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 261 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 138 of file TImage.h.

Referenced by TRootBrowserLite::ExecuteDefaultAction(), TRootSniffer::ProduceImage(), and TPadPainter::SaveImage().

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

Reimplemented in TASImage.

Definition at line 253 of file TImage.h.

Referenced by TASImage::FillSpans(), TPadPainter::SaveImage(), and TGLPadPainter::SaveImage().

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

Reimplemented in TASImage.

Definition at line 250 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 257 of file TImage.h.

Referenced by TRootSniffer::ProduceImage().

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 61 of file TImage.cxx.

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

Reimplemented in TASImage.

Definition at line 249 of file TImage.h.

virtual Pixmap_t TImage::GetPixmap ( )
inlinevirtual
virtual UInt_t* TImage::GetRgbaArray ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 254 of file TImage.h.

virtual TImage* TImage::GetScaledImage ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 247 of file TImage.h.

virtual UInt_t* TImage::GetScanline ( UInt_t  )
inlinevirtual

Reimplemented in TASImage.

Definition at line 256 of file TImage.h.

virtual Double_t* TImage::GetVecArray ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 255 of file TImage.h.

virtual UInt_t TImage::GetWidth ( ) const
inlinevirtual
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 184 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 150 of file TImage.h.

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 180 of file TImage.h.

virtual Bool_t TImage::IsEditable ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 242 of file TImage.h.

virtual Bool_t TImage::IsGray ( ) const
inlinevirtual

Reimplemented in TASImage.

Definition at line 151 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 154 of file TImage.h.

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

Create image from XPM data array.

Definition at line 172 of file TImage.cxx.

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 127 of file TImage.cxx.

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 142 of file TImage.cxx.

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 157 of file TImage.cxx.

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

Definition at line 271 of file TImage.h.

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

Definition at line 272 of file TImage.h.

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

Definition at line 120 of file TImage.h.

Referenced by TASImage::operator=().

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 170 of file TImage.h.

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 259 of file TImage.h.

Referenced by TGSpeedo::DoRedraw(), TGHtml::DrawImage(), and TGSpeedo::DrawNeedle().

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

Reimplemented in TASImage.

Definition at line 213 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 212 of file TImage.h.

Referenced by TImageDump::DrawPolyMarker(), and TImageDump::DrawPS().

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

Reimplemented in TASImage.

Definition at line 130 of file TImage.h.

Referenced by Open().

virtual void TImage::Scale ( UInt_t  ,
UInt_t   
)
inlinevirtual
virtual void TImage::SetEditable ( Bool_t  = kTRUE)
inlinevirtual

Reimplemented in TASImage.

Definition at line 241 of file TImage.h.

Referenced by TRootEmbeddedCanvas::HandleDNDDrop(), and TRootCanvas::HandleDNDDrop().

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

Reimplemented in TASImage.

Definition at line 133 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 134 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 135 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 258 of file TImage.h.

Referenced by TGFileBrowser::GetObjPicture(), Open(), and TGMainFrame::SetIconPixmap().

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

Reimplemented in TASImage.

Definition at line 160 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 164 of file TImage.h.

virtual void TImage::UnZoom ( )
inlinevirtual

Reimplemented in TASImage.

Definition at line 141 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 177 of file TImage.h.

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

Reimplemented in TASImage.

Definition at line 144 of file TImage.h.

Friends And Related Function Documentation

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

Definition at line 184 of file TImage.cxx.

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

Definition at line 185 of file TImage.cxx.


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