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

Image class.

TASImage is the concrete interface to the image processing library libAfterImage.

It allows reading and writing of images in different formats, several image manipulations (scaling, tiling, merging, etc.) and displaying in pads. The size of the image on the screen does not depend on the original size of the image but on the size of the pad. Therefore it is very easy to resize the image on the screen by resizing the pad.

Besides reading an image from a file an image can be defined by a two dimensional array of values. A palette defines the color of each value.

The image can be zoomed by defining a rectangle with the mouse. The color palette can be modified with a GUI, just select StartPaletteEditor() from the context menu.

Several examples showing how to use this class are available in the ROOT tutorials: $ROOTSYS/tutorials/visualisation/image/

Definition at line 31 of file TASImage.h.

Public Types

enum  { kSingleKey = (1ULL << (0)) , kOverwrite = (1ULL << (1)) , kWriteDelete = (1ULL << (2)) }
enum  {
  kIsOnHeap = 0x01000000 , kNotDeleted = 0x02000000 , kZombie = 0x04000000 , kInconsistent = 0x08000000 ,
  kBitMask = 0x00ffffff
}
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  EDeprecatedStatusBits { kObjInCanvas = (1ULL << (3)) }
enum  EImageFileTypes {
  kXpm = 0 , kZCompressedXpm , kGZCompressedXpm , kPng ,
  kJpeg , kXcf , kPpm , kPnm ,
  kBmp , kIco , kCur , kGif ,
  kTiff , kXbm , kFits , kTga ,
  kXml , kUnknown , kAnimGif
}
enum  EImageQuality {
  kImgDefault = -1 , kImgPoor = 0 , kImgFast = 1 , kImgGood = 2 ,
  kImgBest = 3
}
enum  EStatusBits {
  kCanDelete = (1ULL << (0)) , kMustCleanup = (1ULL << (3)) , kIsReferenced = (1ULL << (4)) , kHasUUID = (1ULL << (5)) ,
  kCannotPick = (1ULL << (6)) , kNoContextMenu = (1ULL << (8)) , kInvalidObject = (1ULL << (13))
}
enum  EText3DType {
  kPlain = 0 , kEmbossed , kSunken , kShadeAbove ,
  kShadeBelow , kEmbossedThick , kSunkenThick , kOutlineAbove ,
  kOutlineBelow , kOutlineFull , k3DTypes
}
enum  ETileType { kStretch = 0 , kTile , kStretchY , kStretchX }

Public Member Functions

 TASImage ()
 Default image constructor.
 TASImage (const char *file, EImageFileTypes type=kUnknown)
 Create an image object and read from specified file.
 TASImage (const char *name, const Double_t *imageData, UInt_t width, UInt_t height, TImagePalette *palette=nullptr)
 Create an image depending on the values of imageData.
 TASImage (const char *name, const TArrayD &imageData, UInt_t width, TImagePalette *palette=nullptr)
 Create an image depending on the values of imageData.
 TASImage (const char *name, const TVectorD &imageData, UInt_t width, TImagePalette *palette=nullptr)
 Create an image depending on the values of imageData.
 TASImage (const TASImage &img)
 Image copy constructor.
 TASImage (UInt_t w, UInt_t h)
 Create an empty image.
 ~TASImage () override
 Image destructor, clean up image and visual.
void AbstractMethod (const char *method) const
 Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.
void Append (const TImage *im, const char *option="+", const char *color="#00000000") override
 Append image.
virtual void AppendPad (Option_t *option="")
 Append graphics object to current pad.
void BeginPaint (Bool_t fast=kTRUE) override
 BeginPaint initializes internal array[width x height] of ARGB32 pixel values.
void Bevel (Int_t x=0, Int_t y=0, UInt_t width=0, UInt_t height=0, const char *hi="#ffdddddd", const char *lo="#ff555555", UShort_t thick=1, Bool_t pressed=kFALSE) override
 Bevel is used to create 3D effect while drawing buttons, or any other image that needs to be framed.
void Blur (Double_t hr=3, Double_t vr=3) override
 Perform Gaussian blur of the image (useful for drop shadows).
void Browse (TBrowser *) override
 Browse image.
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.
void Clear (Option_t *option="") override
 Set name and title to empty strings ("").
TObjectClone (const char *newname="") const override
 Clone image.
Int_t Compare (const TObject *obj) const override
 Compare two TNamed objects.
void Copy (TAttImage &attline) const
 Copy this image attributes to a new attimage.
void Copy (TObject &named) const override
 Copy this to obj.
void CopyArea (TImage *dst, Int_t xsrc, Int_t ysrc, UInt_t w, UInt_t h, Int_t xdst=0, Int_t ydst=0, Int_t gfunc=3, EColorChan chan=kAllChan) override
 Copy source region to the destination image.
void Crop (Int_t x=0, Int_t y=0, UInt_t width=0, UInt_t height=0) override
 Crop an image.
void CropPolygon (UInt_t npt, TPoint *ppt) override
 Crop a convex polygon.
void CropSpans (UInt_t npt, TPoint *ppt, UInt_t *widths) override
 Crop spans.
virtual void Delete (Option_t *option="")
 Delete this object.
Int_t DistancetoPrimitive (Int_t px, Int_t py) override
 Is the mouse in the image ?
void Draw (Option_t *option="") override
 Draw image.
void DrawBox (Int_t x1, Int_t y1, Int_t x2, Int_t y2, const char *col="#000000", UInt_t thick=1, Int_t mode=0) override
 Draw a box.
void DrawCellArray (Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t nx, Int_t ny, UInt_t *ic) override
 Draw a cell array.
void DrawCircle (Int_t x, Int_t y, Int_t r, const char *col="#000000", Int_t thick=1) override
 Draw a circle.
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).
void DrawCubeBezier (Int_t x1, Int_t y1, Int_t x2, Int_t y2, Int_t x3, Int_t y3, const char *col="#000000", UInt_t thick=1) override
 Draw a cubic bezier line.
void DrawDashLine (UInt_t x1, UInt_t y1, UInt_t x2, UInt_t y2, UInt_t nDash, const char *pDash, const char *col="#000000", UInt_t thick=1) override
 Draw a dashed line.
void DrawEllips (Int_t x, Int_t y, Int_t rx, Int_t ry, Int_t angle, const char *col="#000000", Int_t thick=1) override
 Draw an ellipse.
void DrawEllips2 (Int_t x, Int_t y, Int_t rx, Int_t ry, Int_t angle, const char *col="#000000", Int_t thick=1) override
 Draw an ellipse.
void DrawFillArea (UInt_t npt, TPoint *ppt, const char *col="#000000", const char *stipple=nullptr, UInt_t w=16, UInt_t h=16) override
 Fill a polygon (any type convex, non-convex).
void DrawFillArea (UInt_t npt, TPoint *ppt, TImage *tile) override
 Fill a polygon (any type convex, non-convex).
void DrawLine (UInt_t x1, UInt_t y1, UInt_t x2, UInt_t y2, const char *col="#000000", UInt_t thick=1) override
 Draw a line.
void DrawPolyLine (UInt_t nn, TPoint *xy, const char *col="#000000", UInt_t thick=1, TImage::ECoordMode mode=kCoordModeOrigin) override
 Draw a polyline.
void DrawRectangle (UInt_t x, UInt_t y, UInt_t w, UInt_t h, const char *col="#000000", UInt_t thick=1) override
 Draw a rectangle.
void DrawSegments (UInt_t nseg, Segment_t *seg, const char *col="#000000", UInt_t thick=1) override
 Draw segments.
void DrawStraightEllips (Int_t x, Int_t y, Int_t rx, Int_t ry, const char *col="#000000", Int_t thick=1) override
 Draw a straight ellipse.
void DrawText (Int_t x=0, Int_t y=0, const char *text="", Int_t size=12, const char *color=nullptr, const char *font="fixed", EText3DType type=TImage::kPlain, const char *fore_file=nullptr, Float_t angle=0) override
 Draw text of size (in pixels for TrueType fonts) at position (x, y) with color specified by hex string.
void DrawText (TText *text, Int_t x=0, Int_t y=0) override
 Draw text at the pixel position (x,y).
void DrawTextOnPad (TText *text, Int_t x=0, Int_t y=0, TVirtualPad *pad=nullptr, Int_t offx=0, Int_t offy=0) override
 Draw text at the pixel position (x,y) checking clip on pad.
virtual void Dump () const
 Dump contents of object on stdout.
virtual void EditorClosed ()
void EndPaint () override
 EndPaint does internal RLE compression of image data.
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.
void ExecuteEvent (Int_t event, Int_t px, Int_t py) override
 Execute mouse events.
virtual void Fatal (const char *method, const char *msgfmt,...) const
 Issue fatal error message.
virtual void FillBuffer (char *&buffer)
 Encode TNamed into output buffer.
void FillPolygon (UInt_t npt, TPoint *ppt, const char *col="#000000", const char *stipple=nullptr, UInt_t w=16, UInt_t h=16) override
 Fill a convex polygon with background color or bitmap.
void FillPolygon (UInt_t npt, TPoint *ppt, TImage *tile) override
 Fill a convex polygon with background image.
void FillRectangle (const char *col=nullptr, Int_t x=0, Int_t y=0, UInt_t width=0, UInt_t height=0) override
 Fill rectangle of size (width, height) at position (x,y) within the existing image with specified color.
void FillSpans (UInt_t npt, TPoint *ppt, UInt_t *widths, const char *col="#000000", const char *stipple=nullptr, UInt_t w=16, UInt_t h=16) override
 Fill spans with specified color or/and stipple.
void FillSpans (UInt_t npt, TPoint *ppt, UInt_t *widths, TImage *tile) override
 Fill spans with tile image.
virtual TObjectFindObject (const char *name) const
 Must be redefined in derived classes.
virtual TObjectFindObject (const TObject *obj) const
 Must be redefined in derived classes.
void Flip (Int_t flip=180) override
 Flip image in place.
void FloodFill (Int_t x, Int_t y, const char *col, const char *min_col, const char *max_col=nullptr) override
 Flood fill.
void FromGLBuffer (UChar_t *buf, UInt_t w, UInt_t h) override
 Creates an image (screenshot) from a RGBA buffer.
void FromPad (TVirtualPad *pad, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0) override
 Create an image from the given pad, afterwards this image can be saved in any of the supported image formats.
void FromWindow (Drawable_t wid, Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0) override
 Create an image (screenshot) from specified window.
UInt_tGetArgbArray () override
 Return a pointer to internal array[width x height] of ARGB32 values This array is directly accessible.
TArrayDGetArray (UInt_t w=0, UInt_t h=0, TImagePalette *pal=gWebImagePalette) override
 In case of vectorized image return an associated array of doubles otherwise this method creates and returns a 2D array of doubles corresponding to palette.
Bool_t GetConstRatio () const
virtual Option_tGetDrawOption () const
 Get option used by the graphics system to draw this object.
UInt_t GetHeight () const override
 Return height of original image not of the displayed image.
const char * GetIconName () const override
 Returns mime type name of object.
ASImage * GetImage () const
void GetImageBuffer (char **buffer, int *size, EImageFileTypes type=TImage::kPng) override
 Return in-memory buffer compressed according image type.
UInt_t GetImageCompression () const
EImageQuality GetImageQuality () const
Pixmap_t GetMask () override
 Returns image mask pixmap (alpha channel).
const char * GetName () const override
 Returns name of object.
char * GetObjectInfo (Int_t px, Int_t py) const override
 Get image pixel coordinates and the pixel value at the mouse pointer.
virtual Option_tGetOption () const
virtual const TImagePaletteGetPalette () const
TArrayLGetPixels (Int_t x=0, Int_t y=0, UInt_t w=0, UInt_t h=0) override
 Return 2D array of machine dependent pixel values.
Pixmap_t GetPixmap () override
 Returns image pixmap.
UInt_tGetRgbaArray () override
 Return a pointer to an array[width x height] of RGBA32 values.
UInt_t GetScaledHeight () const
 Return height of the displayed image not of the original image.
TImageGetScaledImage () const override
UInt_t GetScaledWidth () const
 Return width of the displayed image not of the original image.
UInt_tGetScanline (UInt_t y) override
 Return a pointer to scan-line.
const char * GetTitle () const override
 Title is used to keep 32x32 xpm image's thumbnail.
virtual UInt_t GetUniqueID () const
 Return the unique object id.
Double_tGetVecArray () override
 Return a pointer to internal array[width x height] of double values [0,1].
UInt_t GetWidth () const override
 Return width of original image not of the displayed image.
void GetZoomPosition (UInt_t &x, UInt_t &y, UInt_t &w, UInt_t &h) const
 Return the zoom parameters.
void Gradient (UInt_t angle=0, const char *colors="#FFFFFF #000000", const char *offsets=nullptr, Int_t x=0, Int_t y=0, UInt_t width=0, UInt_t height=0) override
 Render multipoint gradient inside rectangle of size (width, height) at position (x,y) within the existing image.
void Gray (Bool_t on=kTRUE) override
 Convert RGB image to Gray image and vice versa.
virtual Bool_t HandleTimer (TTimer *timer)
 Execute action in response of a timer timing out.
ULong_t Hash () const override
 Return hash value for this object.
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.
void HSV (UInt_t hue=0, UInt_t radius=360, Int_t H=0, Int_t S=0, Int_t V=0, Int_t x=0, Int_t y=0, UInt_t width=0, UInt_t height=0) override
 This function will tile original image to specified size with offsets requested, and then it will go though it and adjust hue, saturation and value of those pixels that have specific hue, set by affected_hue/ affected_radius parameters.
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)
TClassIsA () const override
Bool_t IsDestructed () const
 IsDestructed.
Bool_t IsEditable () const override
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).
Bool_t IsGray () const override
Bool_t IsOnHeap () const
Bool_t IsPaletteEnabled () const
Bool_t IsSortable () const override
Bool_t IsValid () const override
Bool_t IsZombie () const
void ls (Option_t *option="") const override
 List this image with its attributes.
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).
void Merge (const TImage *im, const char *op="alphablend", Int_t x=0, Int_t y=0) override
 Merge two images.
void Mirror (Bool_t vert=kTRUE) override
 Mirror image in place.
virtual Bool_t Notify ()
 This method must be overridden to handle object notification (the base implementation is no-op).
void Obsolete (const char *method, const char *asOfVers, const char *removedFromVers) const
 Use this method to declare a method obsolete.
void operator delete (void *, size_t)
 Operator delete for sized deallocation.
void operator delete (void *ptr)
 Operator delete.
void operator delete (void *ptr, void *vp)
 Only called by placement new when throwing an exception.
void operator delete[] (void *, size_t)
 Operator delete [] for sized deallocation.
void operator delete[] (void *ptr)
 Operator delete [].
void operator delete[] (void *ptr, void *vp)
 Only called by placement new[] when throwing an exception.
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)
TImageoperator+= (const TImage &i)
TImageoperator/= (const TImage &i)
TASImageoperator= (const TASImage &img)
 Image assignment operator.
void Pad (const char *color="#00FFFFFF", UInt_t left=0, UInt_t right=0, UInt_t top=0, UInt_t bottom=0) override
 Enlarge image, padding it with specified color on each side in accordance with requested geometry.
void Paint (Option_t *option="") override
 Paint image.
void PaintImage (Drawable_t wid, Int_t x, Int_t y, Int_t xsrc=0, Int_t ysrc=0, UInt_t wsrc=0, UInt_t hsrc=0, Option_t *opt="") override
 Draw image on the drawable wid (pixmap, window) at x,y position.
void PolyPoint (UInt_t npt, TPoint *ppt, const char *col="#000000", TImage::ECoordMode mode=kCoordModeOrigin) override
 Draw a poly point.
virtual void Pop ()
 Pop on object drawn in a pad to the top of the display list.
void Print (Option_t *option="") const override
 Print TNamed name and title.
void PutPixel (Int_t x, Int_t y, const char *col="#000000") override
 Draw a point at the specified position.
virtual Int_t Read (const char *name)
 Read contents of object with specified name from the current directory.
void ReadImage (const char *file, EImageFileTypes type=TImage::kUnknown) override
 Read specified image file.
virtual void RecursiveRemove (TObject *obj)
 Recursively remove this object from a list.
virtual void ResetAttImage (Option_t *option="")
 Reset this image attributes to default values.
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 SaveImageAttributes (std::ostream &out, const char *name, EImageQuality qualdef=kImgPoor, UInt_t comprdef=0, Bool_t constRatiodef=kTRUE)
 Save image attributes as C++ statement(s) on output stream, but not the palette.
void SavePrimitive (std::ostream &out, Option_t *option="") override
 Save a primitive as a C++ statement(s) on output stream "out".
void Scale (UInt_t width, UInt_t height) override
 Scale the original image.
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 SetConstRatio (Bool_t constRatio=kTRUE)
 Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.
virtual void SetDrawOption (Option_t *option="")
 Set drawing option for object.
void SetEditable (Bool_t on=kTRUE) override
void SetImage (ASImage *image)
void SetImage (const Double_t *imageData, UInt_t width, UInt_t height, TImagePalette *palette=nullptr) override
 Deletes the old image and creates a new image depending on the values of imageData.
void SetImage (const TArrayD &imageData, UInt_t width, TImagePalette *palette=nullptr) override
 Delete the old image and creates a new image depending on the values of imageData.
void SetImage (const TVectorD &imageData, UInt_t width, TImagePalette *palette=nullptr) override
 Delete the old image and creates a new image depending on the values of imageData.
void SetImage (Pixmap_t pxm, Pixmap_t mask=0) override
 Create image from pixmap.
Bool_t SetImageBuffer (char **buffer, EImageFileTypes type=TImage::kPng) override
 Create image from compressed buffer.
virtual void SetImageCompression (UInt_t lcompression)
virtual void SetImageQuality (EImageQuality lquality)
Bool_t SetJpegDpi (const char *name, UInt_t dpi=72)
 Set an image printing resolution in Dots Per Inch units.
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).
void SetPalette (const TImagePalette *palette) override
 Set a new palette to an image.
void SetPaletteEnabled (Bool_t on=kTRUE) override
 Switch on/off the image palette.
void SetTitle (const char *title="") override
 Set a title for an image.
virtual void SetUniqueID (UInt_t uid)
 Set the unique object id.
virtual Int_t Sizeof () const
 Return size of the TNamed part of the TObject.
void Slice (UInt_t xStart, UInt_t xEnd, UInt_t yStart, UInt_t yEnd, UInt_t toWidth, UInt_t toHeight) override
 Another method of enlarging images where corners remain unchanged, but middle part gets tiled.
void StartPaletteEditor () override
 Start palette editor.
void Streamer (TBuffer &) override
 Streamer for ROOT I/O.
void StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b)
virtual void SysError (const char *method, const char *msgfmt,...) const
 Issue system error message.
Bool_t TestBit (UInt_t f) const
Int_t TestBits (UInt_t f) const
void Tile (UInt_t width, UInt_t height) override
 Tile the original image.
void UnZoom () override
 Un-zoom the image to original size.
virtual void UseCurrentStyle ()
 Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.
Double_tVectorize (UInt_t max_colors=256, UInt_t dither=4, Int_t opaque_threshold=1) override
 Reduce color-depth of an image and fills vector of "scientific data" [0...1].
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.
void WriteImage (const char *file, EImageFileTypes type=TImage::kUnknown) override
 Write image to specified file.
void Zoom (UInt_t offX, UInt_t offY, UInt_t width, UInt_t height) override
 The area of an image displayed in a pad is defined by this function.

Static Public Member Functions

static UInt_t AlphaBlend (UInt_t bot, UInt_t top)
 Return alpha-blended value computed from bottom and top pixel values.
static TClassClass ()
static const char * Class_Name ()
static constexpr Version_t Class_Version ()
static TImageCreate ()
 Create an image.
static const char * DeclFileName ()
static Longptr_t GetDtorOnly ()
 Return destructor only flag.
static EImageFileTypes GetImageFileTypeFromFilename (const char *opt)
 Return the image type for the extension specified in filename.
static Bool_t GetObjectStat ()
 Get status of object stat flag.
static const ASVisual * GetVisual ()
 Return visual.
static void Image2Drawable (ASImage *im, Drawable_t wid, Int_t x, Int_t y, Int_t xsrc=0, Int_t ysrc=0, UInt_t wsrc=0, UInt_t hsrc=0, Option_t *opt="")
 Draw asimage on drawable.
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 void SetDtorOnly (void *obj)
 Set destructor only flag.
static void SetObjectStat (Bool_t stat)
 Turn on/off tracking of objects in the TObjectTable.

Protected Types

enum  { kOnlyPrepStep = (1ULL << (3)) }

Protected Member Functions

virtual void DoError (int level, const char *location, const char *fmt, va_list va) const
 Interface to ErrorHandler (protected).
EImageFileTypes GetFileType (const char *ext)
 Return file type depending on specified extension.
Bool_t InitImage (const char *caller)
 Static function to initialize the image.
void MakeZombie ()
void MapFileTypes (EImageFileTypes &type, UInt_t &astype, Bool_t toas=kTRUE)
 Map file type to/from AfterImage types.
void MapQuality (EImageQuality &quality, UInt_t &asquality, Bool_t toas=kTRUE)
 Map quality to/from AfterImage quality.
void SavePrimitiveNameTitle (std::ostream &out, const char *variable_name)
 Save object name and title into the output stream "out".

Static Protected Member Functions

static Bool_t InitVisual ()
 Static function to initialize the ASVisual.
static void SavePrimitiveConstructor (std::ostream &out, TClass *cl, const char *variable_name, const char *constructor_agrs="", Bool_t empty_line=kTRUE)
 Save object constructor in the output stream "out".
static void SavePrimitiveDraw (std::ostream &out, const char *variable_name, Option_t *option=nullptr)
 Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.
static TString SavePrimitiveVector (std::ostream &out, const char *prefix, Int_t len, Double_t *arr, Int_t flag=0)
 Save array in the output stream "out" as vector.

Protected Attributes

Bool_t fConstRatio {kFALSE}
 keep aspect ratio of image on the screen
Bool_t fEditable
 ! kTRUE image can be resized, moved by resizing/moving gPad
ASImage * fGrayImage
 ! gray image
ASImage * fImage
 ! pointer to image structure of original image
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")}
Bool_t fIsGray
 ! kTRUE if image is gray
Double_t fMaxValue
 ! max value in image
Double_t fMinValue
 ! min value in image
TString fName
Int_t fPaintMode
 ! 1 - fast mode, 0 - low memory slow mode
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
TASImagefScaledImage
 ! temporary scaled and zoomed image produced from original image
TString fTitle
UInt_t fZoomHeight
 ! hight of zoomed image in image pixels
UInt_t fZoomOffX
 ! X - offset for zooming in image pixels
UInt_t fZoomOffY
 ! Y - offset for zooming im image pixels
Int_t fZoomUpdate
 ! kZoom - new zooming required, kZoomOps - other ops in action, kNoZoom - no zooming or ops
UInt_t fZoomWidth
 ! width of zoomed image in image pixels

Static Protected Attributes

static Bool_t fgBatch = kFALSE
 global flag to signal if batch mode is active ie fgVisual->dpy was set to nullptr
static Bool_t fgInit = kFALSE
 global flag to init afterimage only once
static THashTablefgPlugList = new THashTable(50)
 ! hash table containing loaded plugins
static ASVisual * fgVisual = nullptr
 pointer to visual structure

Private Types

enum  { kReadWritePNG , kReadWriteVector }
enum  { kNoZoom = 0 , kZoom = 1 , kZoomOps = -1 }

Private Member Functions

void CreateThumbnail ()
 Create image thumbnail.
void DestroyImage ()
 Destroy image.
void DestroyScaledImage ()
 Destroy scaled image.
void DrawDashHLine (UInt_t y, UInt_t x1, UInt_t x2, UInt_t nDash, const char *pDash, UInt_t col, UInt_t thick)
 Draw a dashed horizontal line.
void DrawDashVLine (UInt_t x, UInt_t y1, UInt_t y2, UInt_t nDash, const char *pDash, UInt_t col, UInt_t thick)
 Draw a dashed vertical line.
void DrawDashZLine (UInt_t x1, UInt_t y1, UInt_t x2, UInt_t y2, UInt_t nDash, const char *pDash, UInt_t col)
 Draw a dashed line with one pixel width.
void DrawDashZTLine (UInt_t x1, UInt_t y1, UInt_t x2, UInt_t y2, UInt_t nDash, const char *pDash, UInt_t col, UInt_t thick)
 Draw a dashed line with thick pixel width.
void DrawFTGlyph (void *bitmap, UInt_t color, Int_t x, Int_t y, TVirtualPad *clippad=nullptr, Int_t offx=0, Int_t offy=0)
 Draw glyph bitmap.
void DrawHLine (UInt_t y, UInt_t x1, UInt_t x2, UInt_t col, UInt_t thick)
 Draw an horizontal line.
void DrawLineInternal (UInt_t x1, UInt_t y1, UInt_t x2, UInt_t y2, UInt_t col, UInt_t thick)
 Internal line drawing.
void DrawTextTTF (Int_t x, Int_t y, const char *text, Int_t size, UInt_t color, const char *font_name, Float_t angle)
 Draw text using TrueType fonts.
void DrawVLine (UInt_t x, UInt_t y1, UInt_t y2, UInt_t col, UInt_t thick)
 Draw a vertical line.
void DrawWideLine (UInt_t x1, UInt_t y1, UInt_t x2, UInt_t y2, UInt_t col, UInt_t thick)
 Draw wide line.
void FillRectangleInternal (UInt_t col, Int_t x, Int_t y, UInt_t width, UInt_t height)
 Fill rectangle of size (width, height) at position (x,y) within the existing image with specified color.
void GetFillAreaSpans (UInt_t npt, TPoint *ppt, UInt_t *nspans, TPoint **firstPoint, UInt_t **firstWidth)
Bool_t GetPolygonSpans (UInt_t npt, TPoint *ppt, UInt_t *nspans, TPoint **firstPoint, UInt_t **firstWidth)
 The code is based on Xserver/mi/mipolycon.c "Copyright 1987, 1998 The Open Group".
Int_t Idx (Int_t idx)
 Return a valid index in fImage tables to avoid seg-fault by accessing out of indices out of array's ranges.
void SetDefaults ()
 Set default parameters.
const char * TypeFromMagicNumber (const char *file)
 Guess the file type from the first byte of file.

Static Private Member Functions

static void AddToTObjectTable (TObject *)
 Private helper function which will dispatch to TObjectTable::AddObj.

Private Attributes

UInt_t fBits
 bit field status word
UInt_t fUniqueID
 object unique identifier

Static Private Attributes

static Longptr_t fgDtorOnly = 0
 object for which to call dtor only (i.e. no delete)
static Bool_t fgObjectStat = kTRUE
 if true keep track of objects in TObjectTable

#include <TASImage.h>

Inheritance diagram for TASImage:
TImage TNamed TAttImage TObject

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
protectedinherited
Enumerator
kOnlyPrepStep 

Used to request that the class specific implementation of TObject::Write just prepare the objects to be ready to be written but do not actually write them into the TBuffer.

This is just for example by TBufferMerger to request that the TTree inside the file calls TTree::FlushBaskets (outside of the merging lock) and TBufferMerger will later ask for the write (inside the merging lock). To take advantage of this feature the class needs to overload TObject::Write and use this enum value accordingly. (See TTree::Write and TObject::Write) Do not use, this feature will be migrate to the Merge function (See TClass and TTree::Merge)

Definition at line 106 of file TObject.h.

◆ anonymous enum

anonymous enum
private
Enumerator
kReadWritePNG 
kReadWriteVector 

Definition at line 35 of file TASImage.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kSingleKey 

write collection with single key

kOverwrite 

overwrite existing object with same name

kWriteDelete 

write object, then delete previous key with same name

Definition at line 99 of file TObject.h.

◆ anonymous enum

anonymous enum
inherited
Enumerator
kIsOnHeap 

object is on heap

kNotDeleted 

object has not been deleted

kZombie 

object ctor failed

kInconsistent 

class overload Hash but does call RecursiveRemove in destructor

kBitMask 

Definition at line 89 of file TObject.h.

◆ anonymous enum

anonymous enum
private
Enumerator
kNoZoom 
kZoom 
kZoomOps 

Definition at line 34 of file TASImage.h.

◆ ECharType

enum TImage::ECharType
inherited
Enumerator
kUTF8 
kChar 
kUnicode 

Definition at line 72 of file TImage.h.

◆ EColorChan

enum TImage::EColorChan
inherited
Enumerator
kRedChan 
kGreenChan 
kBlueChan 
kAlphaChan 
kAllChan 

Definition at line 90 of file TImage.h.

◆ ECoordMode

enum TImage::ECoordMode
inherited
Enumerator
kCoordModeOrigin 
kCoordModePrevious 

Definition at line 85 of file TImage.h.

◆ EDeprecatedStatusBits

Enumerator
kObjInCanvas 

for backward compatibility only, use kMustCleanup

Definition at line 84 of file TObject.h.

◆ EImageFileTypes

enum TImage::EImageFileTypes
inherited
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.

◆ EImageQuality

enum TAttImage::EImageQuality
inherited
Enumerator
kImgDefault 
kImgPoor 
kImgFast 
kImgGood 
kImgBest 

Definition at line 63 of file TAttImage.h.

◆ EStatusBits

enum TObject::EStatusBits
inherited
Enumerator
kCanDelete 

if object in a list can be deleted

kMustCleanup 

if object destructor must call RecursiveRemove()

kIsReferenced 

if object is referenced by a TRef or TRefArray

kHasUUID 

if object has a TUUID (its fUniqueID=UUIDNumber)

kCannotPick 

if object in a pad cannot be picked

kNoContextMenu 

if object does not want context menu

kInvalidObject 

if object ctor succeeded but object should not be used

Definition at line 70 of file TObject.h.

◆ EText3DType

enum TImage::EText3DType
inherited
Enumerator
kPlain 
kEmbossed 
kSunken 
kShadeAbove 
kShadeBelow 
kEmbossedThick 
kSunkenThick 
kOutlineAbove 
kOutlineBelow 
kOutlineFull 
k3DTypes 

Definition at line 58 of file TImage.h.

◆ ETileType

enum TImage::ETileType
inherited
Enumerator
kStretch 
kTile 
kStretchY 
kStretchX 

Definition at line 78 of file TImage.h.

Constructor & Destructor Documentation

◆ TASImage() [1/7]

TASImage::TASImage ( )

Default image constructor.

Definition at line 236 of file TASImage.cxx.

◆ TASImage() [2/7]

TASImage::TASImage ( UInt_t w,
UInt_t h )

Create an empty image.

Definition at line 244 of file TASImage.cxx.

◆ TASImage() [3/7]

TASImage::TASImage ( const char * file,
EImageFileTypes type = kUnknown )

Create an image object and read from specified file.

For more information see description of function ReadImage() which is called by this constructor.

Definition at line 256 of file TASImage.cxx.

◆ TASImage() [4/7]

TASImage::TASImage ( const char * name,
const Double_t * imageData,
UInt_t width,
UInt_t height,
TImagePalette * palette = nullptr )

Create an image depending on the values of imageData.

For more information see function SetImage() which is called by this constructor.

Definition at line 269 of file TASImage.cxx.

◆ TASImage() [5/7]

TASImage::TASImage ( const char * name,
const TArrayD & imageData,
UInt_t width,
TImagePalette * palette = nullptr )

Create an image depending on the values of imageData.

The size of the image is width X (imageData.fN / width). For more information see function SetImage() which is called by this constructor.

Definition at line 282 of file TASImage.cxx.

◆ TASImage() [6/7]

TASImage::TASImage ( const char * name,
const TVectorD & imageData,
UInt_t width,
TImagePalette * palette = nullptr )

Create an image depending on the values of imageData.

The size of the image is width X (imageData.fN / width). For more information see function SetImage() which is called by this constructor.

Definition at line 295 of file TASImage.cxx.

◆ TASImage() [7/7]

TASImage::TASImage ( const TASImage & img)

Image copy constructor.

Definition at line 305 of file TASImage.cxx.

◆ ~TASImage()

TASImage::~TASImage ( )
override

Image destructor, clean up image and visual.

Definition at line 367 of file TASImage.cxx.

Member Function Documentation

◆ AbstractMethod()

void TObject::AbstractMethod ( const char * method) const
inherited

Call this function within a function that you don't want to define as purely virtual, in order not to force all users deriving from that class to implement that maybe (on their side) unused function; but at the same time, emit a run-time warning if they try to call it, telling that it is not implemented in the derived class: action must thus be taken on the user side to override it.

In other word, this method acts as a "runtime purely virtual" warning instead of a "compiler purely virtual" error.

Warning
This interface is a legacy function that is no longer recommended to be used by new development code.
Note
The name "AbstractMethod" does not imply that it's an abstract method in the strict C++ sense.

Definition at line 1149 of file TObject.cxx.

◆ AddToTObjectTable()

void TObject::AddToTObjectTable ( TObject * op)
staticprivateinherited

Private helper function which will dispatch to TObjectTable::AddObj.

Included here to avoid circular dependency between header files.

Definition at line 195 of file TObject.cxx.

◆ AlphaBlend()

UInt_t TASImage::AlphaBlend ( UInt_t bot,
UInt_t top )
static

Return alpha-blended value computed from bottom and top pixel values.

Definition at line 5092 of file TASImage.cxx.

◆ Append()

void TASImage::Append ( const TImage * im,
const char * option = "+",
const char * color = "#00000000" )
overridevirtual

Append image.

option:

  • "+" - appends to the right side
  • "/" - appends to the bottom

Reimplemented from TImage.

Definition at line 3531 of file TASImage.cxx.

◆ AppendPad()

void TObject::AppendPad ( Option_t * option = "")
virtualinherited

Append graphics object to current pad.

In case no current pad is set yet, create a default canvas with the name "c1".

Definition at line 204 of file TObject.cxx.

◆ BeginPaint()

void TASImage::BeginPaint ( Bool_t mode = kTRUE)
overridevirtual

BeginPaint initializes internal array[width x height] of ARGB32 pixel values.

That provides quick access to image during paint operations. To RLE compress image one needs to call EndPaint method when painting is over.

Reimplemented from TImage.

Definition at line 3572 of file TASImage.cxx.

◆ Bevel()

void TASImage::Bevel ( Int_t x = 0,
Int_t y = 0,
UInt_t width = 0,
UInt_t height = 0,
const char * hi_color = "#ffdddddd",
const char * lo_color = "#ff555555",
UShort_t thick = 1,
Bool_t reverse = kFALSE )
overridevirtual

Bevel is used to create 3D effect while drawing buttons, or any other image that needs to be framed.

Bevel is drawn using 2 primary colors: one for top and left sides - hi color, and another for bottom and right sides - low color. Bevel can be drawn over existing image or as newly created, as it is shown in code below:

img->Bevel(0, 0, 400, 300, "#dddddd", "#000000", 3);
TImage(const char *file)
Definition TImage.h:99
static TImage * Create()
Create an image.
Definition TImage.cxx:34
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)
Definition TImage.h:178

Reimplemented from TImage.

Definition at line 3291 of file TASImage.cxx.

◆ Blur()

void TASImage::Blur ( Double_t hr = 3,
Double_t vr = 3 )
overridevirtual

Perform Gaussian blur of the image (useful for drop shadows).

  • hr - horizontal radius of the blur
  • vr - vertical radius of the blur

Reimplemented from TImage.

Definition at line 2797 of file TASImage.cxx.

◆ Browse()

void TASImage::Browse ( TBrowser * )
overridevirtual

Browse image.

Reimplemented from TObject.

Definition at line 6151 of file TASImage.cxx.

◆ CheckedHash()

ULong_t TObject::CheckedHash ( )
inlineinherited

Check and record whether this class has a consistent Hash/RecursiveRemove setup (*) and then return the regular Hash value for this object.

The intent is for this routine to be called instead of directly calling the function Hash during "insert" operations. See TObject::HasInconsistenTObjectHash();

(*) The setup is consistent when all classes in the class hierarchy that overload TObject::Hash do call ROOT::CallRecursiveRemoveIfNeeded in their destructor. i.e. it is safe to call the Hash virtual function during the RecursiveRemove operation.

Definition at line 332 of file TObject.h.

◆ Class()

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

◆ Class_Name()

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

◆ Class_Version()

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

Definition at line 215 of file TASImage.h.

◆ ClassName()

const char * TObject::ClassName ( ) const
virtualinherited

Returns name of class to which the object belongs.

Definition at line 227 of file TObject.cxx.

◆ Clear()

void TNamed::Clear ( Option_t * option = "")
overridevirtualinherited

Set name and title to empty strings ("").

Reimplemented from TObject.

Reimplemented in TPrincipal, TProcessID, TStreamerInfo, TTask, TVirtualFitter, and TVirtualStreamerInfo.

Definition at line 63 of file TNamed.cxx.

◆ Clone()

TObject * TASImage::Clone ( const char * newname = "") const
overridevirtual

Clone image.

Reimplemented from TObject.

Definition at line 2826 of file TASImage.cxx.

◆ Compare()

Int_t TNamed::Compare ( const TObject * obj) const
overridevirtualinherited

Compare two TNamed objects.

Returns 0 when equal, -1 when this is smaller and +1 when bigger (like strcmp).

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 84 of file TNamed.cxx.

◆ Copy() [1/2]

void TAttImage::Copy ( TAttImage & attline) const
inherited

Copy this image attributes to a new attimage.

Definition at line 555 of file TAttImage.cxx.

◆ Copy() [2/2]

void TNamed::Copy ( TObject & named) const
overridevirtualinherited

Copy this to obj.

Reimplemented from TObject.

Reimplemented in TPieSlice, TProfile2D, TProfile3D, TProfile, TStyle, TSystemDirectory, TSystemFile, TText, and TXTRU.

Definition at line 93 of file TNamed.cxx.

◆ CopyArea()

void TASImage::CopyArea ( TImage * dst,
Int_t xsrc,
Int_t ysrc,
UInt_t w,
UInt_t h,
Int_t xdst = 0,
Int_t ydst = 0,
Int_t gfunc = 3,
EColorChan chan = kAllChan )
overridevirtual

Copy source region to the destination image.

Copy is done according to specified function:

kGXclear = 0, // 0
kGXand, // src AND dst
kGXandReverse, // src AND NOT dst
kGXcopy, // src (default)
kGXandInverted, // NOT src AND dst
kGXnoop, // dst
kGXxor, // src XOR dst
kGXor, // src OR dst
kGXnor, // NOT src AND NOT dst
kGXequiv, // NOT src XOR dst
kGXinvert, // NOT dst
kGXorReverse, // src OR NOT dst
kGXcopyInverted, // NOT src
kGXorInverted, // NOT src OR dst
kGXnand, // NOT src OR NOT dst
kGXset // 1
};
EGraphicsFunction
Definition GuiTypes.h:68
@ kGXorReverse
src OR NOT dst
Definition GuiTypes.h:80
@ kGXnand
NOT src OR NOT dst.
Definition GuiTypes.h:83
@ kGXandReverse
src AND NOT dst
Definition GuiTypes.h:71
@ kGXor
src OR dst
Definition GuiTypes.h:76
@ kGXcopy
src
Definition GuiTypes.h:72
@ kGXorInverted
NOT src OR dst.
Definition GuiTypes.h:82
@ kGXandInverted
NOT src AND dst.
Definition GuiTypes.h:73
@ kGXequiv
NOT src XOR dst.
Definition GuiTypes.h:78
@ kGXset
1
Definition GuiTypes.h:84
@ kGXnor
NOT src AND NOT dst.
Definition GuiTypes.h:77
@ kGXnoop
dst
Definition GuiTypes.h:74
@ kGXinvert
NOT dst.
Definition GuiTypes.h:79
@ kGXxor
src XOR dst
Definition GuiTypes.h:75
@ kGXand
src AND dst
Definition GuiTypes.h:70
@ kGXclear
0
Definition GuiTypes.h:69
@ kGXcopyInverted
NOT src.
Definition GuiTypes.h:81

Reimplemented from TImage.

Definition at line 4949 of file TASImage.cxx.

◆ Create()

TImage * TImage::Create ( )
staticinherited

Create an image.

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

Definition at line 34 of file TImage.cxx.

◆ CreateThumbnail()

void TASImage::CreateThumbnail ( )
private

Create image thumbnail.

Definition at line 5973 of file TASImage.cxx.

◆ Crop()

void TASImage::Crop ( Int_t x = 0,
Int_t y = 0,
UInt_t width = 0,
UInt_t height = 0 )
overridevirtual

Crop an image.

Reimplemented from TImage.

Definition at line 3454 of file TASImage.cxx.

◆ CropPolygon()

void TASImage::CropPolygon ( UInt_t npt,
TPoint * ppt )
overridevirtual

Crop a convex polygon.

Reimplemented from TImage.

Definition at line 5326 of file TASImage.cxx.

◆ CropSpans()

void TASImage::CropSpans ( UInt_t npt,
TPoint * ppt,
UInt_t * widths )
overridevirtual

Crop spans.

Reimplemented from TImage.

Definition at line 4876 of file TASImage.cxx.

◆ DeclFileName()

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

Definition at line 215 of file TASImage.h.

◆ Delete()

void TObject::Delete ( Option_t * option = "")
virtualinherited

◆ DestroyImage()

void TASImage::DestroyImage ( )
private

Destroy image.

Definition at line 179 of file TASImage.cxx.

◆ DestroyScaledImage()

void TASImage::DestroyScaledImage ( )
private

Destroy scaled image.

Definition at line 197 of file TASImage.cxx.

◆ DistancetoPrimitive()

Int_t TASImage::DistancetoPrimitive ( Int_t px,
Int_t py )
overridevirtual

Is the mouse in the image ?

Reimplemented from TObject.

Definition at line 1718 of file TASImage.cxx.

◆ DoError()

void TObject::DoError ( int level,
const char * location,
const char * fmt,
va_list va ) const
protectedvirtualinherited

Interface to ErrorHandler (protected).

Reimplemented in TThread, and TTreeViewer.

Definition at line 1059 of file TObject.cxx.

◆ Draw()

void TASImage::Draw ( Option_t * option = "")
overridevirtual

Draw image.

Support the following drawing options:

  • "T[x,y[,tint]]" : tile image (use specified offset and tint), e.g. "T100,100,#556655" with this option the zooming is not possible and disabled
  • "N" : display in new canvas (of original image size)
  • "X" : image is drawn expanded to pad size
  • "Z" : image is vectorized and image palette is drawn

The default is to display the image in the current gPad.

Reimplemented from TObject.

Definition at line 1181 of file TASImage.cxx.

◆ DrawBox()

void TASImage::DrawBox ( Int_t x1,
Int_t y1,
Int_t x2,
Int_t y2,
const char * col = "#000000",
UInt_t thick = 1,
Int_t mode = 0 )
overridevirtual

Draw a box.

Reimplemented from TImage.

Definition at line 4136 of file TASImage.cxx.

◆ DrawCellArray()

void TASImage::DrawCellArray ( Int_t x1,
Int_t y1,
Int_t x2,
Int_t y2,
Int_t nx,
Int_t ny,
UInt_t * ic )
overridevirtual

Draw a cell array.

Parameters
[in]x1,y1: left down corner
[in]x2,y2: right up corner
[in]nx,ny: array size
[in]ic: array of ARGB32 colors

Draw a cell array. The drawing is done with the pixel precision if (X2-X1)/NX (or Y) is not a exact pixel number the position of the top right corner may be wrong.

Reimplemented from TImage.

Definition at line 5063 of file TASImage.cxx.

◆ DrawCircle()

void TASImage::DrawCircle ( Int_t x,
Int_t y,
Int_t r,
const char * col = "#000000",
Int_t thick = 1 )
overridevirtual

Draw a circle.

If thick < 0 - draw filled circle

Reimplemented from TImage.

Definition at line 6287 of file TASImage.cxx.

◆ DrawClass()

void TObject::DrawClass ( ) const
virtualinherited

Draw class inheritance tree of the class to which this object belongs.

If a class B inherits from a class A, description of B is drawn on the right side of description of A. Member functions overridden by B are shown in class A with a blue line crossing-out the corresponding member function. The following picture is the class inheritance tree of class TPaveLabel:

Reimplemented in TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 308 of file TObject.cxx.

◆ DrawClone()

TObject * TObject::DrawClone ( Option_t * option = "") const
virtualinherited

Draw a clone of this object in the current selected pad with: gROOT->SetSelectedPad(c1).

If pad was not selected - gPad will be used.

Note
For histograms, use the more specialised TH1::DrawCopy().

Reimplemented in TAxis, TCanvas, TGFrame, TSystemDirectory, and TSystemFile.

Definition at line 319 of file TObject.cxx.

◆ DrawCubeBezier()

void TASImage::DrawCubeBezier ( Int_t x1,
Int_t y1,
Int_t x2,
Int_t y2,
Int_t x3,
Int_t y3,
const char * col = "#000000",
UInt_t thick = 1 )
overridevirtual

Draw a cubic bezier line.

Reimplemented from TImage.

Definition at line 6202 of file TASImage.cxx.

◆ DrawDashHLine()

void TASImage::DrawDashHLine ( UInt_t y,
UInt_t x1,
UInt_t x2,
UInt_t nDash,
const char * pDash,
UInt_t col,
UInt_t thick )
private

Draw a dashed horizontal line.

Definition at line 4185 of file TASImage.cxx.

◆ DrawDashLine()

void TASImage::DrawDashLine ( UInt_t x1,
UInt_t y1,
UInt_t x2,
UInt_t y2,
UInt_t nDash,
const char * pDash,
const char * col = "#000000",
UInt_t thick = 1 )
overridevirtual

Draw a dashed line.

Reimplemented from TImage.

Definition at line 4651 of file TASImage.cxx.

◆ DrawDashVLine()

void TASImage::DrawDashVLine ( UInt_t x,
UInt_t y1,
UInt_t y2,
UInt_t nDash,
const char * pDash,
UInt_t col,
UInt_t thick )
private

Draw a dashed vertical line.

Definition at line 4243 of file TASImage.cxx.

◆ DrawDashZLine()

void TASImage::DrawDashZLine ( UInt_t x1,
UInt_t y1,
UInt_t x2,
UInt_t y2,
UInt_t nDash,
const char * pDash,
UInt_t col )
private

Draw a dashed line with one pixel width.

Definition at line 4303 of file TASImage.cxx.

◆ DrawDashZTLine()

void TASImage::DrawDashZTLine ( UInt_t x1,
UInt_t y1,
UInt_t x2,
UInt_t y2,
UInt_t nDash,
const char * pDash,
UInt_t col,
UInt_t thick )
private

Draw a dashed line with thick pixel width.

Definition at line 4490 of file TASImage.cxx.

◆ DrawEllips()

void TASImage::DrawEllips ( Int_t x,
Int_t y,
Int_t rx,
Int_t ry,
Int_t angle,
const char * col = "#000000",
Int_t thick = 1 )
overridevirtual

Draw an ellipse.

If thick < 0 - draw filled ellips

Reimplemented from TImage.

Definition at line 6331 of file TASImage.cxx.

◆ DrawEllips2()

void TASImage::DrawEllips2 ( Int_t x,
Int_t y,
Int_t rx,
Int_t ry,
Int_t angle,
const char * col = "#000000",
Int_t thick = 1 )
overridevirtual

Draw an ellipse.

If thick < 0 - draw filled ellipse.

Reimplemented from TImage.

Definition at line 6374 of file TASImage.cxx.

◆ DrawFillArea() [1/2]

void TASImage::DrawFillArea ( UInt_t npt,
TPoint * ppt,
const char * col = "#000000",
const char * stipple = nullptr,
UInt_t w = 16,
UInt_t h = 16 )
overridevirtual

Fill a polygon (any type convex, non-convex).

Reimplemented from TImage.

Definition at line 5352 of file TASImage.cxx.

◆ DrawFillArea() [2/2]

void TASImage::DrawFillArea ( UInt_t npt,
TPoint * ppt,
TImage * tile )
overridevirtual

Fill a polygon (any type convex, non-convex).

Reimplemented from TImage.

Definition at line 5454 of file TASImage.cxx.

◆ DrawFTGlyph()

void TASImage::DrawFTGlyph ( void * bitmap,
UInt_t color,
Int_t x,
Int_t y,
TVirtualPad * clippad = nullptr,
Int_t offx = 0,
Int_t offy = 0 )
private

Draw glyph bitmap.

Definition at line 5612 of file TASImage.cxx.

◆ DrawHLine()

void TASImage::DrawHLine ( UInt_t y,
UInt_t x1,
UInt_t x2,
UInt_t col,
UInt_t thick )
private

Draw an horizontal line.

Definition at line 3902 of file TASImage.cxx.

◆ DrawLine()

void TASImage::DrawLine ( UInt_t x1,
UInt_t y1,
UInt_t x2,
UInt_t y2,
const char * col = "#000000",
UInt_t thick = 1 )
overridevirtual

Draw a line.

Reimplemented from TImage.

Definition at line 3941 of file TASImage.cxx.

◆ DrawLineInternal()

void TASImage::DrawLineInternal ( UInt_t x1,
UInt_t y1,
UInt_t x2,
UInt_t y2,
UInt_t col,
UInt_t thick )
private

Internal line drawing.

Definition at line 3952 of file TASImage.cxx.

◆ DrawPolyLine()

void TASImage::DrawPolyLine ( UInt_t nn,
TPoint * xy,
const char * col = "#000000",
UInt_t thick = 1,
TImage::ECoordMode mode = kCoordModeOrigin )
overridevirtual

Draw a polyline.

Reimplemented from TImage.

Definition at line 4680 of file TASImage.cxx.

◆ DrawRectangle()

void TASImage::DrawRectangle ( UInt_t x,
UInt_t y,
UInt_t w,
UInt_t h,
const char * col = "#000000",
UInt_t thick = 1 )
overridevirtual

Draw a rectangle.

Reimplemented from TImage.

Definition at line 4098 of file TASImage.cxx.

◆ DrawSegments()

void TASImage::DrawSegments ( UInt_t nseg,
Segment_t * seg,
const char * col = "#000000",
UInt_t thick = 1 )
overridevirtual

Draw segments.

Reimplemented from TImage.

Definition at line 4770 of file TASImage.cxx.

◆ DrawStraightEllips()

void TASImage::DrawStraightEllips ( Int_t x,
Int_t y,
Int_t rx,
Int_t ry,
const char * col = "#000000",
Int_t thick = 1 )
overridevirtual

Draw a straight ellipse.

If thick < 0 - draw filled ellipse.

Reimplemented from TImage.

Definition at line 6244 of file TASImage.cxx.

◆ DrawText() [1/2]

void TASImage::DrawText ( Int_t x = 0,
Int_t y = 0,
const char * text = "",
Int_t size = 12,
const char * color = nullptr,
const char * font_name = "fixed",
EText3DType type = TImage::kPlain,
const char * fore_file = nullptr,
Float_t angle = 0 )
overridevirtual

Draw text of size (in pixels for TrueType fonts) at position (x, y) with color specified by hex string.

  • font_name: TrueType font's filename or X font spec or alias. 3D style of text is one of the following:
    • 0 plain 2D text,
    • 1 embossed,
    • 2 sunken,
    • 3 shade above,
    • 4 shade below,
    • 5 embossed thick,
    • 6 sunken thick.
    • 7 outline above,
    • 8 ouline below,
    • 9 full ouline.
  • fore_file specifies foreground texture of text.

Reimplemented from TImage.

Definition at line 2618 of file TASImage.cxx.

◆ DrawText() [2/2]

void TASImage::DrawText ( TText * text,
Int_t x = 0,
Int_t y = 0 )
overridevirtual

Draw text at the pixel position (x,y).

Reimplemented from TImage.

Definition at line 5705 of file TASImage.cxx.

◆ DrawTextOnPad()

void TASImage::DrawTextOnPad ( TText * text,
Int_t x = 0,
Int_t y = 0,
TVirtualPad * pad = nullptr,
Int_t offx = 0,
Int_t offy = 0 )
overridevirtual

Draw text at the pixel position (x,y) checking clip on pad.

Reimplemented from TImage.

Definition at line 5715 of file TASImage.cxx.

◆ DrawTextTTF()

void TASImage::DrawTextTTF ( Int_t x,
Int_t y,
const char * text,
Int_t size,
UInt_t color,
const char * font_name,
Float_t angle )
private

Draw text using TrueType fonts.

Definition at line 5838 of file TASImage.cxx.

◆ DrawVLine()

void TASImage::DrawVLine ( UInt_t x,
UInt_t y1,
UInt_t y2,
UInt_t col,
UInt_t thick )
private

Draw a vertical line.

Definition at line 3863 of file TASImage.cxx.

◆ DrawWideLine()

void TASImage::DrawWideLine ( UInt_t x1,
UInt_t y1,
UInt_t x2,
UInt_t y2,
UInt_t col,
UInt_t thick )
private

Draw wide line.

Definition at line 5562 of file TASImage.cxx.

◆ Dump()

void TObject::Dump ( ) const
virtualinherited

Dump contents of object on stdout.

Using the information in the object dictionary (class TClass) each data member is interpreted. If a data member is a pointer, the pointer value is printed

The following output is the Dump of a TArrow object:

fAngle 0 Arrow opening angle (degrees)
fArrowSize 0.2 Arrow Size
fOption.*fData
fX1 0.1 X of 1st point
fY1 0.15 Y of 1st point
fX2 0.67 X of 2nd point
fY2 0.83 Y of 2nd point
fUniqueID 0 object unique identifier
fBits 50331648 bit field status word
fLineColor 1 line color
fLineStyle 1 line style
fLineWidth 1 line width
fFillColor 19 fill area color
fFillStyle 1001 fill area style
#define X(type, name)
UInt_t fUniqueID
object unique identifier
Definition TObject.h:46
UInt_t fBits
bit field status word
Definition TObject.h:47
TLine * line
TCanvas * style()
Definition style.C:1

Reimplemented in TClass, TCollection, TGFrame, TGPack, and TSystemFile.

Definition at line 367 of file TObject.cxx.

◆ EditorClosed()

virtual void TAttImage::EditorClosed ( )
inlinevirtualinherited

Definition at line 103 of file TAttImage.h.

◆ EndPaint()

void TASImage::EndPaint ( )
overridevirtual

EndPaint does internal RLE compression of image data.

Reimplemented from TImage.

Definition at line 3604 of file TASImage.cxx.

◆ Error()

void TObject::Error ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue error message.

Use "location" to specify the method where the error occurred. Accepts standard printf formatting arguments.

Reimplemented in TFitResult.

Definition at line 1098 of file TObject.cxx.

◆ Execute() [1/2]

void TObject::Execute ( const char * method,
const char * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with the given parameter string, e.g.

"3.14,1,\"text\"".

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 378 of file TObject.cxx.

◆ Execute() [2/2]

void TObject::Execute ( TMethod * method,
TObjArray * params,
Int_t * error = nullptr )
virtualinherited

Execute method on this object with parameters stored in the TObjArray.

The TObjArray should contain an argv vector like:

argv[0] ... argv[n] = the list of TObjString parameters
Collectable string class.
Definition TObjString.h:28
const Int_t n
Definition legend1.C:16

Reimplemented in ROOT::R::TRInterface, TCling, TContextMenu, TInterpreter, and TMethodCall.

Definition at line 398 of file TObject.cxx.

◆ ExecuteEvent()

void TASImage::ExecuteEvent ( Int_t event,
Int_t px,
Int_t py )
overridevirtual

Execute mouse events.

Reimplemented from TObject.

Definition at line 1741 of file TASImage.cxx.

◆ Fatal()

void TObject::Fatal ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue fatal error message.

Use "location" to specify the method where the fatal error occurred. Accepts standard printf formatting arguments.

Definition at line 1126 of file TObject.cxx.

◆ FillBuffer()

void TNamed::FillBuffer ( char *& buffer)
virtualinherited

Encode TNamed into output buffer.

Reimplemented in TDirectoryFile, TFile, TKey, TKeySQL, TKeyXML, TSQLFile, and TXMLFile.

Definition at line 103 of file TNamed.cxx.

◆ FillPolygon() [1/2]

void TASImage::FillPolygon ( UInt_t npt,
TPoint * ppt,
const char * col = "#000000",
const char * stipple = nullptr,
UInt_t w = 16,
UInt_t h = 16 )
overridevirtual

Fill a convex polygon with background color or bitmap.

For non convex polygon one must use DrawFillArea method

Reimplemented from TImage.

Definition at line 5270 of file TASImage.cxx.

◆ FillPolygon() [2/2]

void TASImage::FillPolygon ( UInt_t npt,
TPoint * ppt,
TImage * tile )
overridevirtual

Fill a convex polygon with background image.

For non convex polygon one must use DrawFillArea method

Reimplemented from TImage.

Definition at line 5302 of file TASImage.cxx.

◆ FillRectangle()

void TASImage::FillRectangle ( const char * col = nullptr,
Int_t x = 0,
Int_t y = 0,
UInt_t width = 0,
UInt_t height = 0 )
overridevirtual

Fill rectangle of size (width, height) at position (x,y) within the existing image with specified color.

To create new image with Fill method the following code can be used:

img->Fill("#FF00FF", 0, 0, 400, 300);

Reimplemented from TImage.

Definition at line 3837 of file TASImage.cxx.

◆ FillRectangleInternal()

void TASImage::FillRectangleInternal ( UInt_t col,
Int_t x,
Int_t y,
UInt_t width,
UInt_t height )
private

Fill rectangle of size (width, height) at position (x,y) within the existing image with specified color.

Definition at line 3774 of file TASImage.cxx.

◆ FillSpans() [1/2]

void TASImage::FillSpans ( UInt_t npt,
TPoint * ppt,
UInt_t * widths,
const char * col = "#000000",
const char * stipple = nullptr,
UInt_t w = 16,
UInt_t h = 16 )
overridevirtual

Fill spans with specified color or/and stipple.

Reimplemented from TImage.

Definition at line 4793 of file TASImage.cxx.

◆ FillSpans() [2/2]

void TASImage::FillSpans ( UInt_t npt,
TPoint * ppt,
UInt_t * widths,
TImage * tile )
overridevirtual

Fill spans with tile image.

Reimplemented from TImage.

Definition at line 4837 of file TASImage.cxx.

◆ FindObject() [1/2]

TObject * TObject::FindObject ( const char * name) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object by name inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 425 of file TObject.cxx.

◆ FindObject() [2/2]

TObject * TObject::FindObject ( const TObject * obj) const
virtualinherited

Must be redefined in derived classes.

This function is typically used with TCollections, but can also be used to find an object inside this object.

Reimplemented in RooAbsCollection, RooLinkedList, TBtree, TCollection, TDirectory, TFolder, TGeometry, TGraph2D, TGraph, TH1, THashList, THashTable, THbookFile, TList, TListOfDataMembers, TListOfEnums, TListOfEnumsWithLock, TListOfFunctions, TListOfFunctionTemplates, TListOfTypes, TMap, TObjArray, TPad, TROOT, TViewPubDataMembers, and TViewPubFunctions.

Definition at line 435 of file TObject.cxx.

◆ Flip()

void TASImage::Flip ( Int_t flip = 180)
overridevirtual

Flip image in place.

Flip is either 90, 180, 270, 180 is default. This function manipulates the original image and destroys the scaled and zoomed image which will be recreated at the next call of the Draw function. If the image is zoomed the zoom - coordinates are now relative to the new image. This function cannot be used for images which were created with the SetImage() functions, because the original pixel values would be destroyed.

Reimplemented from TImage.

Definition at line 2106 of file TASImage.cxx.

◆ FloodFill()

void TASImage::FloodFill ( Int_t x,
Int_t y,
const char * col,
const char * min_col,
const char * max_col = nullptr )
overridevirtual

Flood fill.

Reimplemented from TImage.

Definition at line 6416 of file TASImage.cxx.

◆ FromGLBuffer()

void TASImage::FromGLBuffer ( UChar_t * buf,
UInt_t w,
UInt_t h )
overridevirtual

Creates an image (screenshot) from a RGBA buffer.

Reimplemented from TImage.

Definition at line 6587 of file TASImage.cxx.

◆ FromPad()

void TASImage::FromPad ( TVirtualPad * pad,
Int_t x = 0,
Int_t y = 0,
UInt_t w = 0,
UInt_t h = 0 )
overridevirtual

Create an image from the given pad, afterwards this image can be saved in any of the supported image formats.

Reimplemented from TImage.

Definition at line 1086 of file TASImage.cxx.

◆ FromWindow()

void TASImage::FromWindow ( Drawable_t wid,
Int_t x = 0,
Int_t y = 0,
UInt_t w = 0,
UInt_t h = 0 )
overridevirtual

Create an image (screenshot) from specified window.

Reimplemented from TImage.

Definition at line 6536 of file TASImage.cxx.

◆ GetArgbArray()

UInt_t * TASImage::GetArgbArray ( )
overridevirtual

Return a pointer to internal array[width x height] of ARGB32 values This array is directly accessible.

That allows to manipulate/change the image.

Reimplemented from TImage.

Definition at line 3631 of file TASImage.cxx.

◆ GetArray()

TArrayD * TASImage::GetArray ( UInt_t w = 0,
UInt_t h = 0,
TImagePalette * palette = gWebImagePalette )
overridevirtual

In case of vectorized image return an associated array of doubles otherwise this method creates and returns a 2D array of doubles corresponding to palette.

If palette is ZERO a color converted to double value [0, 1] according to formula

Double_t((r << 16) + (g << 8) + b)/0xFFFFFF
ROOT::R::TRInterface & r
Definition Object.C:4
#define b(i)
Definition RSha256.hxx:100
#define g(i)
Definition RSha256.hxx:105
double Double_t
Double 8 bytes.
Definition RtypesCore.h:73

The returned array must be deleted after usage.

Reimplemented from TImage.

Definition at line 2542 of file TASImage.cxx.

◆ GetConstRatio()

Bool_t TAttImage::GetConstRatio ( ) const
inlineinherited

Definition at line 85 of file TAttImage.h.

◆ GetDrawOption()

Option_t * TObject::GetDrawOption ( ) const
virtualinherited

Get option used by the graphics system to draw this object.

Note that before calling object.GetDrawOption(), you must have called object.Draw(..) before in the current pad.

Reimplemented in TBrowser, TFitEditor, TGedFrame, TGFileBrowser, TRootBrowser, and TRootBrowserLite.

Definition at line 445 of file TObject.cxx.

◆ GetDtorOnly()

Longptr_t TObject::GetDtorOnly ( )
staticinherited

Return destructor only flag.

Definition at line 1196 of file TObject.cxx.

◆ GetFileType()

TImage::EImageFileTypes TASImage::GetFileType ( const char * ext)
protected

Return file type depending on specified extension.

Protected method.

Definition at line 834 of file TASImage.cxx.

◆ GetFillAreaSpans()

void TASImage::GetFillAreaSpans ( UInt_t npt,
TPoint * ppt,
UInt_t * nspans,
TPoint ** firstPoint,
UInt_t ** firstWidth )
private

◆ GetHeight()

UInt_t TASImage::GetHeight ( ) const
overridevirtual

Return height of original image not of the displayed image.

(Number of image pixels)

Reimplemented from TImage.

Definition at line 2192 of file TASImage.cxx.

◆ GetIconName()

const char * TASImage::GetIconName ( ) const
inlineoverridevirtual

Returns mime type name of object.

Used by the TBrowser (via TGMimeTypes class). Override for class of which you would like to have different icons for objects of the same class.

Reimplemented from TObject.

Definition at line 102 of file TASImage.h.

◆ GetImage()

ASImage * TASImage::GetImage ( ) const
inline

Definition at line 190 of file TASImage.h.

◆ GetImageBuffer()

void TASImage::GetImageBuffer ( char ** buffer,
int * size,
EImageFileTypes type = TImage::kPng )
overridevirtual

Return in-memory buffer compressed according image type.

Buffer must be deallocated after usage with free(buffer) call. This method can be used for sending images over network.

Reimplemented from TImage.

Definition at line 5871 of file TASImage.cxx.

◆ GetImageCompression()

UInt_t TAttImage::GetImageCompression ( ) const
inlineinherited

Definition at line 86 of file TAttImage.h.

◆ GetImageFileTypeFromFilename()

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

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

◆ GetImageQuality()

EImageQuality TAttImage::GetImageQuality ( ) const
inlineinherited

Definition at line 87 of file TAttImage.h.

◆ GetMask()

Pixmap_t TASImage::GetMask ( )
overridevirtual

Returns image mask pixmap (alpha channel).

The pixmap must deleted by user.

Reimplemented from TImage.

Definition at line 2354 of file TASImage.cxx.

◆ GetName()

const char * TNamed::GetName ( ) const
inlineoverridevirtualinherited

Returns name of object.

This default method returns the class name. Classes that give objects a name should override this method.

Reimplemented from TObject.

Definition at line 49 of file TNamed.h.

◆ GetObjectInfo()

char * TASImage::GetObjectInfo ( Int_t px,
Int_t py ) const
overridevirtual

Get image pixel coordinates and the pixel value at the mouse pointer.

Reimplemented from TObject.

Definition at line 1852 of file TASImage.cxx.

◆ GetObjectStat()

Bool_t TObject::GetObjectStat ( )
staticinherited

Get status of object stat flag.

Definition at line 1181 of file TObject.cxx.

◆ GetOption()

virtual Option_t * TObject::GetOption ( ) const
inlinevirtualinherited

◆ GetPalette()

virtual const TImagePalette & TAttImage::GetPalette ( ) const
inlinevirtualinherited

Definition at line 88 of file TAttImage.h.

◆ GetPixels()

TArrayL * TASImage::GetPixels ( Int_t x = 0,
Int_t y = 0,
UInt_t w = 0,
UInt_t h = 0 )
overridevirtual

Return 2D array of machine dependent pixel values.

Reimplemented from TImage.

Definition at line 2450 of file TASImage.cxx.

◆ GetPixmap()

Pixmap_t TASImage::GetPixmap ( )
overridevirtual

Returns image pixmap.

The pixmap must deleted by user.

Reimplemented from TImage.

Definition at line 2322 of file TASImage.cxx.

◆ GetPolygonSpans()

Bool_t TASImage::GetPolygonSpans ( UInt_t npt,
TPoint * ppt,
UInt_t * nspans,
TPoint ** firstPoint,
UInt_t ** firstWidth )
private

The code is based on Xserver/mi/mipolycon.c "Copyright 1987, 1998 The Open Group".

Definition at line 5140 of file TASImage.cxx.

◆ GetRgbaArray()

UInt_t * TASImage::GetRgbaArray ( )
overridevirtual

Return a pointer to an array[width x height] of RGBA32 values.

This array is created from internal ARGB32 array, must be deleted after usage.

Reimplemented from TImage.

Definition at line 3659 of file TASImage.cxx.

◆ GetScaledHeight()

UInt_t TASImage::GetScaledHeight ( ) const

Return height of the displayed image not of the original image.

(Number of screen pixels)

Definition at line 2210 of file TASImage.cxx.

◆ GetScaledImage()

TImage * TASImage::GetScaledImage ( ) const
inlineoverridevirtual

Reimplemented from TImage.

Definition at line 192 of file TASImage.h.

◆ GetScaledWidth()

UInt_t TASImage::GetScaledWidth ( ) const

Return width of the displayed image not of the original image.

(Number of screen pixels)

Definition at line 2201 of file TASImage.cxx.

◆ GetScanline()

UInt_t * TASImage::GetScanline ( UInt_t y)
overridevirtual

Return a pointer to scan-line.

Reimplemented from TImage.

Definition at line 3704 of file TASImage.cxx.

◆ GetTitle()

const char * TASImage::GetTitle ( ) const
overridevirtual

Title is used to keep 32x32 xpm image's thumbnail.

Reimplemented from TObject.

Definition at line 6164 of file TASImage.cxx.

◆ GetUniqueID()

UInt_t TObject::GetUniqueID ( ) const
virtualinherited

Return the unique object id.

Definition at line 480 of file TObject.cxx.

◆ GetVecArray()

Double_t * TASImage::GetVecArray ( )
overridevirtual

Return a pointer to internal array[width x height] of double values [0,1].

This array is directly accessible. That allows to manipulate/change the image.

Reimplemented from TImage.

Definition at line 2520 of file TASImage.cxx.

◆ GetVisual()

const ASVisual * TASImage::GetVisual ( )
static

Return visual.

Definition at line 5103 of file TASImage.cxx.

◆ GetWidth()

UInt_t TASImage::GetWidth ( ) const
overridevirtual

Return width of original image not of the displayed image.

(Number of image pixels)

Reimplemented from TImage.

Definition at line 2183 of file TASImage.cxx.

◆ GetZoomPosition()

void TASImage::GetZoomPosition ( UInt_t & x,
UInt_t & y,
UInt_t & w,
UInt_t & h ) const

Return the zoom parameters.

This is useful when the zoom has been done interactively using the mouse.

Definition at line 2219 of file TASImage.cxx.

◆ Gradient()

void TASImage::Gradient ( UInt_t angle = 0,
const char * colors = "#FFFFFF #000000",
const char * offsets = nullptr,
Int_t x = 0,
Int_t y = 0,
UInt_t width = 0,
UInt_t height = 0 )
overridevirtual

Render multipoint gradient inside rectangle of size (width, height) at position (x,y) within the existing image.

Parameters
[in]angleGiven in degrees. Default is 0. This is the direction of the gradient. Currently the only supported values are 0, 45, 90, 135, 180, 225, 270, 315. 0 means left to right, 90 means top to bottom, etc.
[in]colorsWhitespace-separated list of colors. At least two colors are required. Each color in this list will be visited in turn, at the intervals given by the offsets attribute.
[in]offsetsWhitespace-separated list of floating point values ranging from 0.0 to 1.0. The colors from the colors attribute are given these offsets, and the final gradient is rendered from the combination of the two. If both colors and offsets are given but the number of colors and offsets do not match, the minimum of the two will be used, and the other will be truncated to match. If offsets are not given, a smooth stepping from 0.0 to 1.0 will be used.
[in]xx position coordinate
[in]yy position coordinate
[in]widthimage width, if 0, it will be read from fImage
[in]heightimage height, if 0, it will be read from fImage

Reimplemented from TImage.

Definition at line 3051 of file TASImage.cxx.

◆ Gray()

void TASImage::Gray ( Bool_t on = kTRUE)
overridevirtual

Convert RGB image to Gray image and vice versa.

Reimplemented from TImage.

Definition at line 6424 of file TASImage.cxx.

◆ HandleTimer()

Bool_t TObject::HandleTimer ( TTimer * timer)
virtualinherited

Execute action in response of a timer timing out.

This method must be overridden if an object has to react to timers.

Reimplemented in TGCommandPlugin, TGDNDManager, TGFileContainer, TGHtml, TGLEventHandler, TGPopupMenu, TGraphTime, TGScrollBar, TGShutter, TGTextEdit, TGTextEditor, TGTextEntry, TGTextView, TGToolTip, TGuiBldDragManager, TGWindow, and TTreeViewer.

Definition at line 516 of file TObject.cxx.

◆ Hash()

ULong_t TNamed::Hash ( ) const
inlineoverridevirtualinherited

Return hash value for this object.

Note: If this routine is overloaded in a derived class, this derived class should also add

void CallRecursiveRemoveIfNeeded(TObject &obj)
call RecursiveRemove for obj if gROOT is valid and obj.TestBit(kMustCleanup) is true.
Definition TROOT.h:406

Otherwise, when RecursiveRemove is called (by ~TObject or example) for this type of object, the transversal of THashList and THashTable containers will will have to be done without call Hash (and hence be linear rather than logarithmic complexity). You will also see warnings like

Error in <ROOT::Internal::TCheckHashRecursiveRemoveConsistency::CheckRecursiveRemove>: The class SomeName overrides
TObject::Hash but does not call TROOT::RecursiveRemove in its destructor.
ULong_t Hash() const override
Return hash value for this object.
Definition TNamed.h:51
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Definition TObject.cxx:1098
TObject()
TObject constructor.
Definition TObject.h:259
void RecursiveRemove(TObject *obj) override
Recursively remove this object from the list of Cleanups.
Definition TROOT.cxx:2651

Reimplemented from TObject.

Definition at line 51 of file TNamed.h.

◆ HasInconsistentHash()

Bool_t TObject::HasInconsistentHash ( ) const
inlineinherited

Return true is the type of this object is known to have an inconsistent setup for Hash and RecursiveRemove (i.e.

missing call to RecursiveRemove in destructor).

Note: Since the consistency is only tested for during inserts, this routine will return true for object that have never been inserted whether or not they have a consistent setup. This has no negative side-effect as searching for the object with the right or wrong Hash will always yield a not-found answer (Since anyway no hash can be guaranteed unique, there is always a check)

Definition at line 366 of file TObject.h.

◆ HSV()

void TASImage::HSV ( UInt_t hue = 0,
UInt_t radius = 360,
Int_t H = 0,
Int_t S = 0,
Int_t V = 0,
Int_t x = 0,
Int_t y = 0,
UInt_t width = 0,
UInt_t height = 0 )
overridevirtual

This function will tile original image to specified size with offsets requested, and then it will go though it and adjust hue, saturation and value of those pixels that have specific hue, set by affected_hue/ affected_radius parameters.

When affected_radius is greater then 180 entire image will be adjusted. Note that since grayscale colors have no hue - the will not get adjusted. Only saturation and value will be adjusted in gray pixels.

Hue is measured as an angle on a 360 degree circle, The following is relationship of hue values to regular color names :

  • red - 0
  • yellow - 60
  • green - 120
  • cyan - 180
  • blue - 240
  • magenta - 300
  • red - 360

All the hue values in parameters will be adjusted to fall within 0-360 range.

Parameters
[in]huehue in degrees in range 0-360. This allows to limit impact of color adjustment to affect only limited range of hues.
[in]radiusvalue in degrees to be used in order to calculate the range of affected hues. Range is determined by substracting and adding this value from/to affected_hue.
[in]Hvalue by which to change hues in affected range.
[in]Svalue by which to change saturation of the pixels in affected hue range.
[in]Vvalue by which to change Value(brightness) of pixels in affected hue range.
[in]x,yposition on infinite surface tiled with original image, of the left-top corner of the area to be used for new image.
[in]width,heightsize of the area of the original image to be used for new image. Default is current width, height of the image.

Reimplemented from TImage.

Definition at line 2985 of file TASImage.cxx.

◆ Idx()

Int_t TASImage::Idx ( Int_t idx)
inlineprivate

Return a valid index in fImage tables to avoid seg-fault by accessing out of indices out of array's ranges.

Definition at line 6724 of file TASImage.cxx.

◆ Image2Drawable()

void TASImage::Image2Drawable ( ASImage * im,
Drawable_t wid,
Int_t x,
Int_t y,
Int_t xsrc = 0,
Int_t ysrc = 0,
UInt_t wsrc = 0,
UInt_t hsrc = 0,
Option_t * opt = "" )
static

Draw asimage on drawable.

Definition at line 1233 of file TASImage.cxx.

◆ Info()

void TObject::Info ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue info message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1072 of file TObject.cxx.

◆ InheritsFrom() [1/2]

Bool_t TObject::InheritsFrom ( const char * classname) const
virtualinherited

Returns kTRUE if object inherits from class "classname".

Reimplemented in TClass.

Definition at line 549 of file TObject.cxx.

◆ InheritsFrom() [2/2]

Bool_t TObject::InheritsFrom ( const TClass * cl) const
virtualinherited

Returns kTRUE if object inherits from TClass cl.

Reimplemented in TClass.

Definition at line 557 of file TObject.cxx.

◆ InitImage()

Bool_t TASImage::InitImage ( const char * caller)
protected

Static function to initialize the image.

Definition at line 2277 of file TASImage.cxx.

◆ InitVisual()

Bool_t TASImage::InitVisual ( )
staticprotected

Static function to initialize the ASVisual.

Definition at line 2230 of file TASImage.cxx.

◆ Inspect()

void TObject::Inspect ( ) const
virtualinherited

Dump contents of this object in a graphics canvas.

Same action as Dump but in a graphical form. In addition pointers to other objects can be followed.

The following picture is the Inspect of a histogram object:

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TGFrame, TInspectorObject, and TSystemFile.

Definition at line 570 of file TObject.cxx.

◆ InvertBit()

void TObject::InvertBit ( UInt_t f)
inlineinherited

Definition at line 206 of file TObject.h.

◆ IsA()

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

Reimplemented from TObject.

Definition at line 215 of file TASImage.h.

◆ IsDestructed()

Bool_t TObject::IsDestructed ( ) const
inlineinherited

IsDestructed.

Note
This function must be non-virtual as it can be used on destructed (but not yet modified) memory. This is used for example in TClonesArray to record the element that have been destructed but not deleted and thus are ready for re-use (by operator new with placement).
Returns
true if this object's destructor has been run.

Definition at line 186 of file TObject.h.

◆ IsEditable()

Bool_t TASImage::IsEditable ( ) const
inlineoverridevirtual

Reimplemented from TImage.

Definition at line 98 of file TASImage.h.

◆ IsEqual()

Bool_t TObject::IsEqual ( const TObject * obj) const
virtualinherited

Default equal comparison (objects are equal if they have the same address in memory).

More complicated classes might want to override this function.

Reimplemented in TGObject, TObjString, TPair, and TQCommand.

Definition at line 589 of file TObject.cxx.

◆ IsFolder()

◆ IsGray()

Bool_t TASImage::IsGray ( ) const
inlineoverridevirtual

Reimplemented from TImage.

Definition at line 189 of file TASImage.h.

◆ IsOnHeap()

Bool_t TObject::IsOnHeap ( ) const
inlineinherited

Definition at line 160 of file TObject.h.

◆ IsPaletteEnabled()

Bool_t TAttImage::IsPaletteEnabled ( ) const
inlineinherited

Definition at line 104 of file TAttImage.h.

◆ IsSortable()

Bool_t TNamed::IsSortable ( ) const
inlineoverridevirtualinherited

Reimplemented from TObject.

Reimplemented in TStructNodeProperty.

Definition at line 52 of file TNamed.h.

◆ IsValid()

Bool_t TASImage::IsValid ( ) const
inlineoverridevirtual

Reimplemented from TImage.

Definition at line 188 of file TASImage.h.

◆ IsZombie()

Bool_t TObject::IsZombie ( ) const
inlineinherited

Definition at line 161 of file TObject.h.

◆ ls()

void TImage::ls ( Option_t * option = "") const
overridevirtualinherited

List this image with its attributes.

Reimplemented from TObject.

Definition at line 108 of file TImage.cxx.

◆ MakeZombie()

void TObject::MakeZombie ( )
inlineprotectedinherited

Definition at line 55 of file TObject.h.

◆ MapFileTypes()

void TASImage::MapFileTypes ( EImageFileTypes & type,
UInt_t & astype,
Bool_t toas = kTRUE )
protected

Map file type to/from AfterImage types.

Protected method.

Definition at line 878 of file TASImage.cxx.

◆ MapQuality()

void TASImage::MapQuality ( EImageQuality & quality,
UInt_t & asquality,
Bool_t toas = kTRUE )
protected

Map quality to/from AfterImage quality.

Protected method.

Definition at line 963 of file TASImage.cxx.

◆ MayNotUse()

void TObject::MayNotUse ( const char * method) const
inherited

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

Definition at line 1160 of file TObject.cxx.

◆ Merge()

void TASImage::Merge ( const TImage * im,
const char * op = "alphablend",
Int_t x = 0,
Int_t y = 0 )
overridevirtual

Merge two images.

op is string which specifies overlay operation. Supported operations are:

  • add - color addition with saturation
  • alphablend - alpha-blending
  • allanon - color values averaging
  • colorize - hue and saturate bottom image same as top image
  • darken - use lowest color value from both images
  • diff - use absolute value of the color difference between two images
  • dissipate - randomly alpha-blend images
  • hue - hue bottom image same as top image
  • lighten - use highest color value from both images
  • overlay - some weird image overlaying(see GIMP)
  • saturate - saturate bottom image same as top image
  • screen - another weird image overlaying(see GIMP)
  • sub - color substraction with saturation
  • tint - tinting image with image
  • value - value bottom image same as top image

Reimplemented from TImage.

Definition at line 2758 of file TASImage.cxx.

◆ Mirror()

void TASImage::Mirror ( Bool_t vert = kTRUE)
overridevirtual

Mirror image in place.

If vert is true mirror in vertical axis, horizontal otherwise. Vertical is default. This function manipulates the original image and destroys the scaled and zoomed image which will be recreated at the next call of the Draw function. If the image is zoomed the zoom - coordinates are now relative to the new image. This function cannot be used for images which were created with the SetImage() functions, because the original pixel values would be destroyed.

Reimplemented from TImage.

Definition at line 2153 of file TASImage.cxx.

◆ Notify()

Bool_t TObject::Notify ( )
virtualinherited

This method must be overridden to handle object notification (the base implementation is no-op).

Different objects in ROOT use the Notify method for different purposes, in coordination with other objects that call this method at the appropriate time.

For example, TLeaf uses it to load class information; TBranchRef to load contents of referenced branches TBranchRef; most notably, based on Notify, TChain implements a callback mechanism to inform interested parties when it switches to a new sub-tree.

Reimplemented in h1analysis, h1analysisTreeReader, TARInterruptHandler, TASInputHandler, TASInterruptHandler, TASLogHandler, TASSigPipeHandler, TBlinkTimer, TBranchElement, TBranchRef, TBreakLineCom, TBrowserTimer, TCollection, TDelCharCom, TDelTextCom, TFileHandler, TGContainerKeyboardTimer, TGContainerScrollTimer, TGInputHandler, TGLRedrawTimer, TGTextEditHist, TGuiBldDragManagerRepeatTimer, TIdleTimer, TInsCharCom, TInsTextCom, TInterruptHandler, TLeafObject, TMessageHandler, TNotifyLink< Type >, TNotifyLink< RNoCleanupNotifierHelper >, TNotifyLink< ROOT::Detail::TBranchProxy >, TNotifyLink< TTreeReader >, TPopupDelayTimer, TProcessEventTimer, TRefTable, TRepeatTimer, TSBRepeatTimer, TSelector, TSelectorDraw, TSelectorEntries, TSignalHandler, TSingleShotCleaner, TSocketHandler, TStdExceptionHandler, TSysEvtHandler, TTermInputHandler, TThreadTimer, TTimeOutTimer, TTimer, TTipDelayTimer, TTree, TTreeFormula, TTreeFormulaManager, TTreeReader, TViewTimer, and TViewUpdateTimer.

Definition at line 618 of file TObject.cxx.

◆ Obsolete()

void TObject::Obsolete ( const char * method,
const char * asOfVers,
const char * removedFromVers ) const
inherited

Use this method to declare a method obsolete.

Specify as of which version the method is obsolete and as from which version it will be removed.

Definition at line 1169 of file TObject.cxx.

◆ Open() [1/5]

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

Create image from XPM data array.

Definition at line 178 of file TImage.cxx.

◆ Open() [2/5]

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

Open a specified image file.

Definition at line 117 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 )
staticinherited

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

Definition at line 133 of file TImage.cxx.

◆ Open() [4/5]

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

Open an image with the specified data in a TArrayD.

Definition at line 148 of file TImage.cxx.

◆ Open() [5/5]

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

Open an image with the specified data in a TVectorD.

Definition at line 163 of file TImage.cxx.

◆ operator delete() [1/3]

void TObject::operator delete ( void * ptr,
size_t size )
inherited

Operator delete for sized deallocation.

Definition at line 1234 of file TObject.cxx.

◆ operator delete() [2/3]

void TObject::operator delete ( void * ptr)
inherited

Operator delete.

Definition at line 1212 of file TObject.cxx.

◆ operator delete() [3/3]

void TObject::operator delete ( void * ptr,
void * vp )
inherited

Only called by placement new when throwing an exception.

Definition at line 1266 of file TObject.cxx.

◆ operator delete[]() [1/3]

void TObject::operator delete[] ( void * ptr,
size_t size )
inherited

Operator delete [] for sized deallocation.

Definition at line 1245 of file TObject.cxx.

◆ operator delete[]() [2/3]

void TObject::operator delete[] ( void * ptr)
inherited

Operator delete [].

Definition at line 1223 of file TObject.cxx.

◆ operator delete[]() [3/3]

void TObject::operator delete[] ( void * ptr,
void * vp )
inherited

Only called by placement new[] when throwing an exception.

Definition at line 1274 of file TObject.cxx.

◆ operator new() [1/2]

void * TObject::operator new ( size_t sz)
inlineinherited

Definition at line 189 of file TObject.h.

◆ operator new() [2/2]

void * TObject::operator new ( size_t sz,
void * vp )
inlineinherited

Definition at line 191 of file TObject.h.

◆ operator new[]() [1/2]

void * TObject::operator new[] ( size_t sz)
inlineinherited

Definition at line 190 of file TObject.h.

◆ operator new[]() [2/2]

void * TObject::operator new[] ( size_t sz,
void * vp )
inlineinherited

Definition at line 192 of file TObject.h.

◆ operator+=()

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

Definition at line 256 of file TImage.h.

◆ operator/=()

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

Definition at line 257 of file TImage.h.

◆ operator=()

TASImage & TASImage::operator= ( const TASImage & img)

Image assignment operator.

Definition at line 333 of file TASImage.cxx.

◆ Pad()

void TASImage::Pad ( const char * color = "#00FFFFFF",
UInt_t left = 0,
UInt_t right = 0,
UInt_t top = 0,
UInt_t bottom = 0 )
overridevirtual

Enlarge image, padding it with specified color on each side in accordance with requested geometry.

Reimplemented from TImage.

Definition at line 3407 of file TASImage.cxx.

◆ Paint()

void TASImage::Paint ( Option_t * option = "")
overridevirtual

Paint image.

Support the following drawing options:

  • "T[x,y[,tint]]" : tile image (use specified offset and tint), e.g. "T100,100,#556655" with this option the zooming is not possible and disabled
  • "N" : display in new canvas (of original image size)
  • "X" : image is drawn expanded to pad size
  • "Z" : image is vectorized and image palette is drawn

The default is to display the image in the current gPad.

Reimplemented from TObject.

Definition at line 1377 of file TASImage.cxx.

◆ PaintImage()

void TASImage::PaintImage ( Drawable_t wid,
Int_t x,
Int_t y,
Int_t xsrc = 0,
Int_t ysrc = 0,
UInt_t wsrc = 0,
UInt_t hsrc = 0,
Option_t * opt = "" )
overridevirtual

Draw image on the drawable wid (pixmap, window) at x,y position.

Parameters
[in]wid: Drawable (pixmap or window) on which image is drawn.
[in]x,y: Window coordinates where image is drawn.
[in]xsrc,ysrc: X and Y coordinates of an image area to be drawn.
[in]wsrc,hsrc: Width and height image area to be drawn.
[in]opt: specific options

Reimplemented from TImage.

Definition at line 1357 of file TASImage.cxx.

◆ PolyPoint()

void TASImage::PolyPoint ( UInt_t npt,
TPoint * ppt,
const char * col = "#000000",
TImage::ECoordMode mode = kCoordModeOrigin )
overridevirtual

Draw a poly point.

Reimplemented from TImage.

Definition at line 4725 of file TASImage.cxx.

◆ Pop()

void TObject::Pop ( )
virtualinherited

Pop on object drawn in a pad to the top of the display list.

I.e. it will be drawn last and on top of all other primitives.

Reimplemented in TFrame, TPad, and TVirtualPad.

Definition at line 640 of file TObject.cxx.

◆ Print()

◆ PutPixel()

void TASImage::PutPixel ( Int_t x,
Int_t y,
const char * col = "#000000" )
overridevirtual

Draw a point at the specified position.

Reimplemented from TImage.

Definition at line 4705 of file TASImage.cxx.

◆ Read()

Int_t TObject::Read ( const char * name)
virtualinherited

Read contents of object with specified name from the current directory.

First the key with the given name is searched in the current directory, next the key buffer is deserialized into the object. The object must have been created before via the default constructor. See TObject::Write().

Reimplemented in TBuffer, TKey, TKeySQL, and TKeyXML.

Definition at line 673 of file TObject.cxx.

◆ ReadImage()

void TASImage::ReadImage ( const char * filename,
EImageFileTypes type = TImage::kUnknown )
overridevirtual

Read specified image file.

The file type is determined by the file extension (the type argument is ignored). It will attempt to append .gz and then .Z to the filename and find such a file. If the filename ends with extension consisting of digits only, it will attempt to find the file with this extension stripped off. On success this extension will be used to load subimage from the file with that number. Subimage is supported for GIF files (ICO, BMP, CUR, TIFF, XCF to be supported in future). For example,

i1 = TImage::Open("anim.gif.0"); // read the first subimage
i4 = TImage::Open("anim.gif.3"); // read the forth subimage
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
Definition TImage.cxx:117

It is also possible to put XPM raw string (see also SetImageBuffer) as the first input parameter ("filename"), such string is returned by GetImageBuffer method.

Reimplemented from TImage.

Definition at line 495 of file TASImage.cxx.

◆ RecursiveRemove()

◆ ResetAttImage()

void TAttImage::ResetAttImage ( Option_t * option = "")
virtualinherited

Reset this image attributes to default values.

Default values are:

  • quality: kImgPoor, (no smoothing while the image is zoomed)
  • compression: 0 (no compression)
  • constRatio: kTRUE
  • palette: a default rainbow palette

Definition at line 572 of file TAttImage.cxx.

◆ ResetBit()

void TObject::ResetBit ( UInt_t f)
inlineinherited

Definition at line 203 of file TObject.h.

◆ SaveAs()

void TObject::SaveAs ( const char * filename = "",
Option_t * option = "" ) const
virtualinherited

Save this object in the file specified by filename.

  • if "filename" contains ".root" the object is saved in filename as root binary file.
  • if "filename" contains ".xml" the object is saved in filename as a xml ascii file.
  • if "filename" contains ".cc" the object is saved in filename as C code independent from ROOT. The code is generated via SavePrimitive(). Specific code should be implemented in each object to handle this option. Like in TF1::SavePrimitive().
  • otherwise the object is written to filename as a CINT/C++ script. The C++ code to rebuild this object is generated via SavePrimitive(). The "option" parameter is passed to SavePrimitive. By default it is an empty string. It can be used to specify the Draw option in the code generated by SavePrimitive.

    The function is available via the object context menu.

Reimplemented in ROOT::Experimental::XRooFit::xRooNode, TClassTree, TFolder, TGeoVolume, TGObject, TGraph, TH1, TPad, TPaveClass, TSpline3, TSpline5, TSpline, TTreePerfStats, and TVirtualPad.

Definition at line 708 of file TObject.cxx.

◆ SaveImageAttributes()

void TAttImage::SaveImageAttributes ( std::ostream & out,
const char * name,
EImageQuality qualdef = kImgPoor,
UInt_t comprdef = 0,
Bool_t constRatiodef = kTRUE )
virtualinherited

Save image attributes as C++ statement(s) on output stream, but not the palette.

Definition at line 608 of file TAttImage.cxx.

◆ SavePrimitive()

void TASImage::SavePrimitive ( std::ostream & out,
Option_t * option = "" )
overridevirtual

Save a primitive as a C++ statement(s) on output stream "out".

Reimplemented from TObject.

Definition at line 6636 of file TASImage.cxx.

◆ SavePrimitiveConstructor()

void TObject::SavePrimitiveConstructor ( std::ostream & out,
TClass * cl,
const char * variable_name,
const char * constructor_agrs = "",
Bool_t empty_line = kTRUE )
staticprotectedinherited

Save object constructor in the output stream "out".

Can be used as first statement when implementing SavePrimitive() method for the object

Definition at line 777 of file TObject.cxx.

◆ SavePrimitiveDraw()

void TObject::SavePrimitiveDraw ( std::ostream & out,
const char * variable_name,
Option_t * option = nullptr )
staticprotectedinherited

Save invocation of primitive Draw() method Skipped if option contains "nodraw" string.

Definition at line 845 of file TObject.cxx.

◆ SavePrimitiveNameTitle()

void TNamed::SavePrimitiveNameTitle ( std::ostream & out,
const char * variable_name )
protectedinherited

Save object name and title into the output stream "out".

Definition at line 135 of file TNamed.cxx.

◆ SavePrimitiveVector()

TString TObject::SavePrimitiveVector ( std::ostream & out,
const char * prefix,
Int_t len,
Double_t * arr,
Int_t flag = 0 )
staticprotectedinherited

Save array in the output stream "out" as vector.

Create unique variable name based on prefix value Returns name of vector which can be used in constructor or in other places of C++ code If flag === kTRUE, just add empty line If flag === 111, check if array is empty and return nullptr or <vectorname>.data()

Definition at line 796 of file TObject.cxx.

◆ Scale()

void TASImage::Scale ( UInt_t toWidth,
UInt_t toHeight )
overridevirtual

Scale the original image.

The size of the image on the screen does not change because it is defined by the size of the pad. This function can be used to change the size of an image before writing it into a file. The colors of the new pixels are interpolated. An image created with the SetImage() functions cannot be modified with the function SetPalette() any more after a call of this function!

Reimplemented from TImage.

Definition at line 1947 of file TASImage.cxx.

◆ SetBit() [1/2]

void TObject::SetBit ( UInt_t f)
inlineinherited

Definition at line 202 of file TObject.h.

◆ SetBit() [2/2]

void TObject::SetBit ( UInt_t f,
Bool_t set )
inherited

Set or unset the user status bits as specified in f.

Definition at line 888 of file TObject.cxx.

◆ SetConstRatio()

void TAttImage::SetConstRatio ( Bool_t constRatio = kTRUE)
virtualinherited

Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.

The aspect ratio of the image on the screen is constant if the ratio flag is set. That means one image pixel is always a square on the screen independent of the pad size and of the size of the zoomed area.

Definition at line 635 of file TAttImage.cxx.

◆ SetDefaults()

void TASImage::SetDefaults ( )
private

Set default parameters.

Definition at line 209 of file TASImage.cxx.

◆ SetDrawOption()

void TObject::SetDrawOption ( Option_t * option = "")
virtualinherited

Set drawing option for object.

This option only affects the drawing style and is stored in the option field of the TObjOptLink supporting a TPad's primitive list (TList). Note that it does not make sense to call object.SetDrawOption(option) before having called object.Draw().

Reimplemented in RooPlot, TAxis, TBrowser, TGedFrame, TGFrame, TPad, TPaveStats, TRootBrowserLite, TSystemDirectory, and TSystemFile.

Definition at line 871 of file TObject.cxx.

◆ SetDtorOnly()

void TObject::SetDtorOnly ( void * obj)
staticinherited

Set destructor only flag.

Definition at line 1204 of file TObject.cxx.

◆ SetEditable()

void TASImage::SetEditable ( Bool_t on = kTRUE)
inlineoverridevirtual

Reimplemented from TImage.

Definition at line 97 of file TASImage.h.

◆ SetImage() [1/5]

void TASImage::SetImage ( ASImage * image)
inline

Definition at line 191 of file TASImage.h.

◆ SetImage() [2/5]

void TASImage::SetImage ( const Double_t * imageData,
UInt_t width,
UInt_t height,
TImagePalette * palette = nullptr )
overridevirtual

Deletes the old image and creates a new image depending on the values of imageData.

The size of the image is width X height.

The color of each pixel depends on the imageData of the corresponding pixel. The palette is used to convert an image value into its color. If palette is not defined (palette = 0) a default palette is used. Any previously defined zooming is reset.

Reimplemented from TImage.

Definition at line 1000 of file TASImage.cxx.

◆ SetImage() [3/5]

void TASImage::SetImage ( const TArrayD & imageData,
UInt_t width,
TImagePalette * palette = nullptr )
overridevirtual

Delete the old image and creates a new image depending on the values of imageData.

The size of the image is width X (imageData.fN / width). The color of each pixel depends on the imageData of the corresponding pixel. The palette is used to convert an image value into its color. If palette is not defined (palette = 0) a default palette is used. Any previously defined zooming is reset.

Reimplemented from TImage.

Definition at line 1063 of file TASImage.cxx.

◆ SetImage() [4/5]

void TASImage::SetImage ( const TVectorD & imageData,
UInt_t width,
TImagePalette * palette = nullptr )
overridevirtual

Delete the old image and creates a new image depending on the values of imageData.

The size of the image is width X (imageData.fN / width). The color of each pixel depends on the imageData of the corresponding pixel. The palette is used to convert an image value into its color. If palette is not defined (palette = 0) a default palette is used. Any previously defined zooming is reset.

Reimplemented from TImage.

Definition at line 1076 of file TASImage.cxx.

◆ SetImage() [5/5]

void TASImage::SetImage ( Pixmap_t pxm,
Pixmap_t mask = 0 )
overridevirtual

Create image from pixmap.

Reimplemented from TImage.

Definition at line 2407 of file TASImage.cxx.

◆ SetImageBuffer()

Bool_t TASImage::SetImageBuffer ( char ** buffer,
EImageFileTypes type = TImage::kPng )
overridevirtual

Create image from compressed buffer.

Supported formats:

  • PNG - by default
  • XPM - two options exist:
    1. xpm as a single string (raw buffer). Such string is returned by GetImageBuffer method. For example:
      char *buf;
      int sz;
      im1->GetImageBuffer(&buf, &int, TImage::kXpm); /*raw buffer*&zwj;/
      TImage *im2 = TImage::Create();
      im2->SetImageBuffer(&buf, TImage::kXpm);
      @ kXpm
      Definition TImage.h:37
    2. xpm as an array of strings (pre-parsed)
      For example:
      char *xpm[] = {
      "64 28 58 1",
      " c #0A030C",
      ". c #1C171B"
      ...
      TImage *im = TImage::Create();
      im->SetImageBuffer(xpm, TImage::kXpm);

Reimplemented from TImage.

Definition at line 5924 of file TASImage.cxx.

◆ SetImageCompression()

virtual void TAttImage::SetImageCompression ( UInt_t lcompression)
inlinevirtualinherited

Definition at line 97 of file TAttImage.h.

◆ SetImageQuality()

virtual void TAttImage::SetImageQuality ( EImageQuality lquality)
inlinevirtualinherited

Definition at line 99 of file TAttImage.h.

◆ SetJpegDpi()

Bool_t TASImage::SetJpegDpi ( const char * name,
UInt_t set = 72 )

Set an image printing resolution in Dots Per Inch units.

Parameters
[in]name- the name of jpeg file.
[in]set- dpi resolution.

Returns kFALSE in case of error.

Definition at line 6668 of file TASImage.cxx.

◆ SetName()

void TNamed::SetName ( const char * name)
virtualinherited

Set the name of the TNamed.

WARNING: if the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, ROOT::Experimental::XRooFit::xRooNode, TChain, TColor, TDirectory, TEfficiency, TEventList, TEveScene, TFormula, TGraph2D, TGraph, TH1, TNode, TRotMatrix, TShape, TSystemDirectory, TSystemFile, and TTree.

Definition at line 149 of file TNamed.cxx.

◆ SetNameTitle()

void TNamed::SetNameTitle ( const char * name,
const char * title )
virtualinherited

Set all the TNamed parameters (name and title).

WARNING: if the name is changed and the object is a member of a THashTable or THashList container the container must be Rehash()'ed after SetName(). For example the list of objects in the current directory is a THashList.

Reimplemented in RooAbsArg, RooAbsData, RooDataHist, RooDataSet, RooFitResult, RooPlot, TContextMenu, TGraph2D, TGraph, TH1, and TNode.

Definition at line 163 of file TNamed.cxx.

◆ SetObjectStat()

void TObject::SetObjectStat ( Bool_t stat)
staticinherited

Turn on/off tracking of objects in the TObjectTable.

Definition at line 1188 of file TObject.cxx.

◆ SetPalette()

void TASImage::SetPalette ( const TImagePalette * palette)
overridevirtual

Set a new palette to an image.

Only images that were created with the SetImage() functions can be modified with this function. The previously used palette is destroyed.

Reimplemented from TAttImage.

Definition at line 1893 of file TASImage.cxx.

◆ SetPaletteEnabled()

void TASImage::SetPaletteEnabled ( Bool_t on = kTRUE)
overridevirtual

Switch on/off the image palette.

That also invokes calling vectorization of image.

Reimplemented from TAttImage.

Definition at line 6607 of file TASImage.cxx.

◆ SetTitle()

void TASImage::SetTitle ( const char * title = "")
overridevirtual

Set a title for an image.

Reimplemented from TNamed.

Definition at line 6181 of file TASImage.cxx.

◆ SetUniqueID()

void TObject::SetUniqueID ( UInt_t uid)
virtualinherited

Set the unique object id.

Definition at line 899 of file TObject.cxx.

◆ Sizeof()

Int_t TNamed::Sizeof ( ) const
virtualinherited

Return size of the TNamed part of the TObject.

Reimplemented in TDirectory, TDirectoryFile, TFile, TKey, TSQLFile, and TXMLFile.

Definition at line 182 of file TNamed.cxx.

◆ Slice()

void TASImage::Slice ( UInt_t xStart,
UInt_t xEnd,
UInt_t yStart,
UInt_t yEnd,
UInt_t toWidth,
UInt_t toHeight )
overridevirtual

Another method of enlarging images where corners remain unchanged, but middle part gets tiled.

Reimplemented from TImage.

Definition at line 1981 of file TASImage.cxx.

◆ StartPaletteEditor()

void TASImage::StartPaletteEditor ( )
overridevirtual

Start palette editor.

Reimplemented from TAttImage.

Definition at line 2303 of file TASImage.cxx.

◆ Streamer()

void TASImage::Streamer ( TBuffer & b)
overridevirtual

Streamer for ROOT I/O.

Reimplemented from TObject.

Definition at line 6059 of file TASImage.cxx.

◆ StreamerNVirtual()

void TASImage::StreamerNVirtual ( TBuffer & ClassDef_StreamerNVirtual_b)
inline

Definition at line 215 of file TASImage.h.

◆ SysError()

void TObject::SysError ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue system error message.

Use "location" to specify the method where the system error occurred. Accepts standard printf formatting arguments.

Definition at line 1112 of file TObject.cxx.

◆ TestBit()

Bool_t TObject::TestBit ( UInt_t f) const
inlineinherited

Definition at line 204 of file TObject.h.

◆ TestBits()

Int_t TObject::TestBits ( UInt_t f) const
inlineinherited

Definition at line 205 of file TObject.h.

◆ Tile()

void TASImage::Tile ( UInt_t width,
UInt_t height )
overridevirtual

Tile the original image.

Reimplemented from TImage.

Definition at line 2017 of file TASImage.cxx.

◆ TypeFromMagicNumber()

const char * TASImage::TypeFromMagicNumber ( const char * file)
private

Guess the file type from the first byte of file.

Definition at line 410 of file TASImage.cxx.

◆ UnZoom()

void TASImage::UnZoom ( )
overridevirtual

Un-zoom the image to original size.

UnZoom() - performs undo for Zoom,Crop,Scale actions

Reimplemented from TImage.

Definition at line 2079 of file TASImage.cxx.

◆ UseCurrentStyle()

void TObject::UseCurrentStyle ( )
virtualinherited

Set current style settings in this object This function is called when either TCanvas::UseCurrentStyle or TROOT::ForceStyle have been invoked.

Reimplemented in TAxis3D, TCanvas, TFrame, TGraph, TH1, TPad, TPaveStats, TPaveText, and TTree.

Definition at line 909 of file TObject.cxx.

◆ Vectorize()

Double_t * TASImage::Vectorize ( UInt_t max_colors = 256,
UInt_t dither = 4,
Int_t opaque_threshold = 1 )
overridevirtual

Reduce color-depth of an image and fills vector of "scientific data" [0...1].

Colors are reduced by allocating color cells to most used colors first, and then approximating other colors with those allocated.

Parameters
[in]max_colors- maximum size of the colormap.
[in]dither- number of bits to strip off the color data ( 0...7 )
[in]opaque_threshold- alpha channel threshold at which pixel should be treated as opaque

Reimplemented from TImage.

Definition at line 2872 of file TASImage.cxx.

◆ Warning()

void TObject::Warning ( const char * location,
const char * fmt,
... ) const
virtualinherited

Issue warning message.

Use "location" to specify the method where the warning occurred. Accepts standard printf formatting arguments.

Definition at line 1084 of file TObject.cxx.

◆ Write() [1/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 )
virtualinherited

Write this object to the current directory.

For more see the const version of this method.

Reimplemented in ROOT::TBufferMergerFile, TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 989 of file TObject.cxx.

◆ Write() [2/2]

Int_t TObject::Write ( const char * name = nullptr,
Int_t option = 0,
Int_t bufsize = 0 ) const
virtualinherited

Write this object to the current directory.

The data structure corresponding to this object is serialized. The corresponding buffer is written to the current directory with an associated key with name "name".

Writing an object to a file involves the following steps:

  • Creation of a support TKey object in the current directory. The TKey object creates a TBuffer object.
  • The TBuffer object is filled via the class::Streamer function.
  • If the file is compressed (default) a second buffer is created to hold the compressed buffer.
  • Reservation of the corresponding space in the file by looking in the TFree list of free blocks of the file.
  • The buffer is written to the file.

Bufsize can be given to force a given buffer size to write this object. By default, the buffersize will be taken from the average buffer size of all objects written to the current file so far.

If a name is specified, it will be the name of the key. If name is not given, the name of the key will be the name as returned by GetName().

The option can be a combination of: kSingleKey, kOverwrite or kWriteDelete Using the kOverwrite option a previous key with the same name is overwritten. The previous key is deleted before writing the new object. Using the kWriteDelete option a previous key with the same name is deleted only after the new object has been written. This option is safer than kOverwrite but it is slower. NOTE: Neither kOverwrite nor kWriteDelete reduces the size of a TFile– the space is simply freed up to be overwritten; in the case of a TTree, it is more complicated. If one opens a TTree, appends some entries, then writes it out, the behaviour is effectively the same. If, however, one creates a new TTree and writes it out in this way, only the metadata is replaced, effectively making the old data invisible without deleting it. TTree::Delete() can be used to mark all disk space occupied by a TTree as free before overwriting its metadata this way. The kSingleKey option is only used by TCollection::Write() to write a container with a single key instead of each object in the container with its own key.

An object is read from the file into memory via TKey::Read() or via TObject::Read().

The function returns the total number of bytes written to the file. It returns 0 if the object cannot be written.

Reimplemented in TBuffer, TCollection, TDirectory, TDirectoryFile, TFile, TMap, TParallelMergingFile, TSQLFile, TTree, and TXMLFile.

Definition at line 964 of file TObject.cxx.

◆ WriteImage()

void TASImage::WriteImage ( const char * file,
EImageFileTypes type = TImage::kUnknown )
overridevirtual

Write image to specified file.

If there is no file extension or if the file extension is unknown, the type argument will be used to determine the file type. The quality and compression is derived from the TAttImage values.

It's possible to write image into an animated GIF file by specifying file name as "myfile.gif+" or "myfile.gif+NN", where NN is the delay of displaying subimages during animation in 10ms seconds units. NN is not restricted to two digits. If NN is omitted the delay between subimages is zero. For an animation that stops after last subimage is reached, one has to write the last image as .gif+ (zero delay of last image) or .gif+NN (NN*10ms delay of last image).

For repeated animation (looping), the last subimage must be specified as:

  • "myfile.gif++NN++" if you want an infinite looping gif with NN*10ms delay of the last image.
  • "myfile.gif++" for an infinite loop with zero delay of last image.
  • "myfile.gif+NN++RR" if you want a finite looping gif with NN*10ms delay of the last image and the animation to be stopped after RR repeats. RR is not restricted to two digits.

A deprecated version for saving the last subimage of a looping gif animation is:

  • "myfile.gif++NN" for a finite loop where NN is number of repetitions and NN*10ms the delay of last image. (No separate control of repeats and delay). Note: If the file "myfile.gif" already exists, the new frames are appended at the end of the file. To avoid this, delete it first with gSystem->Unlink(myfile.gif);

The following macro creates animated gif from jpeg images with names

  • imageNN.jpg, where 1<= NN <= 10
  • The delays are set to 10*10ms.
    {
    TImage *img = 0;
    gSystem->Unlink("anim.gif"); // delete existing file
    for (int i = 1; i <= 10; i++) {
    delete img; // delete previous image
    // Read image data. Image can be in any format, e.g. png, gif, etc.
    img = TImage::Open(Form("image%d.jpg", i));
    if (i < 10) {
    img->WriteImage("anim.gif+10"); // 10 centiseconds delay
    } else { // the last image written. "++" stands for infinit animation.
    img->WriteImage("anim.gif++10++"); // 10 centiseconds delay of last image
    }
    }
    }
    char * Form(const char *fmt,...)
    Formats a string in a circular formatting buffer.
    Definition TString.cxx:2496
    externTSystem * gSystem
    Definition TSystem.h:582
    virtual void WriteImage(const char *, EImageFileTypes=TImage::kUnknown)
    Definition TImage.h:115

Reimplemented from TImage.

Definition at line 663 of file TASImage.cxx.

◆ Zoom()

void TASImage::Zoom ( UInt_t offX,
UInt_t offY,
UInt_t width,
UInt_t height )
overridevirtual

The area of an image displayed in a pad is defined by this function.

Note: the size on the screen is defined by the size of the pad. The original image is not modified by this function. If width or height is larger than the original image they are reduced to the width and height of the image. If the off values are too large (off + width > image width) than the off values are decreased. For example: offX = image width - width Note: the parameters are always relative to the original image not to the size of an already zoomed image.

Reimplemented from TImage.

Definition at line 2057 of file TASImage.cxx.

Member Data Documentation

◆ fBits

UInt_t TObject::fBits
privateinherited

bit field status word

Definition at line 47 of file TObject.h.

◆ fConstRatio

Bool_t TAttImage::fConstRatio {kFALSE}
protectedinherited

keep aspect ratio of image on the screen

Definition at line 74 of file TAttImage.h.

◆ fEditable

Bool_t TASImage::fEditable
protected

! kTRUE image can be resized, moved by resizing/moving gPad

Definition at line 67 of file TASImage.h.

◆ fgBatch

Bool_t TASImage::fgBatch = kFALSE
staticprotected

global flag to signal if batch mode is active ie fgVisual->dpy was set to nullptr

Definition at line 75 of file TASImage.h.

◆ fgDtorOnly

Longptr_t TObject::fgDtorOnly = 0
staticprivateinherited

object for which to call dtor only (i.e. no delete)

Definition at line 49 of file TObject.h.

◆ fgInit

Bool_t TASImage::fgInit = kFALSE
staticprotected

global flag to init afterimage only once

Definition at line 74 of file TASImage.h.

◆ fgObjectStat

Bool_t TObject::fgObjectStat = kTRUE
staticprivateinherited

if true keep track of objects in TObjectTable

Definition at line 50 of file TObject.h.

◆ fgPlugList

THashTable * TASImage::fgPlugList = new THashTable(50)
staticprotected

! hash table containing loaded plugins

Definition at line 71 of file TASImage.h.

◆ fGrayImage

ASImage* TASImage::fGrayImage
protected

! gray image

Definition at line 69 of file TASImage.h.

◆ fgVisual

ASVisual * TASImage::fgVisual = nullptr
staticprotected

pointer to visual structure

Definition at line 73 of file TASImage.h.

◆ fImage

ASImage* TASImage::fImage
protected

! pointer to image structure of original image

Definition at line 58 of file TASImage.h.

◆ fImageCompression

UInt_t TAttImage::fImageCompression {0}
protectedinherited

compression [0 .. 100] 0: no compression

Definition at line 73 of file TAttImage.h.

◆ fImageQuality

EImageQuality TAttImage::fImageQuality {kImgDefault}
protectedinherited

OPTION={GetMethod="GetImageQuality";SetMethod="SetImageQuality";Items=(kImgDefault="Default",kImgPoor="Poor",kImgFast="Fast",kImgGood="Good",kImgBest="Best")}

Definition at line 72 of file TAttImage.h.

◆ fIsGray

Bool_t TASImage::fIsGray
protected

! kTRUE if image is gray

Definition at line 70 of file TASImage.h.

◆ fMaxValue

Double_t TASImage::fMaxValue
protected

! max value in image

Definition at line 60 of file TASImage.h.

◆ fMinValue

Double_t TASImage::fMinValue
protected

! min value in image

Definition at line 61 of file TASImage.h.

◆ fName

TString TNamed::fName
protectedinherited

Definition at line 32 of file TNamed.h.

◆ fPaintMode

Int_t TASImage::fPaintMode
protected

! 1 - fast mode, 0 - low memory slow mode

Definition at line 68 of file TASImage.h.

◆ fPalette

TImagePalette TAttImage::fPalette
protectedinherited

color palette for value -> color conversion

Definition at line 75 of file TAttImage.h.

◆ fPaletteEditor

TPaletteEditor* TAttImage::fPaletteEditor {nullptr}
protectedinherited

! GUI to edit the color palette

Definition at line 76 of file TAttImage.h.

◆ fPaletteEnabled

Bool_t TAttImage::fPaletteEnabled {kFALSE}
protectedinherited

! kTRUE - palette is drawn on the image

Definition at line 77 of file TAttImage.h.

◆ fScaledImage

TASImage* TASImage::fScaledImage
protected

! temporary scaled and zoomed image produced from original image

Definition at line 59 of file TASImage.h.

◆ fTitle

TString TNamed::fTitle
protectedinherited

Definition at line 33 of file TNamed.h.

◆ fUniqueID

UInt_t TObject::fUniqueID
privateinherited

object unique identifier

Definition at line 46 of file TObject.h.

◆ fZoomHeight

UInt_t TASImage::fZoomHeight
protected

! hight of zoomed image in image pixels

Definition at line 65 of file TASImage.h.

◆ fZoomOffX

UInt_t TASImage::fZoomOffX
protected

! X - offset for zooming in image pixels

Definition at line 62 of file TASImage.h.

◆ fZoomOffY

UInt_t TASImage::fZoomOffY
protected

! Y - offset for zooming im image pixels

Definition at line 63 of file TASImage.h.

◆ fZoomUpdate

Int_t TASImage::fZoomUpdate
protected

! kZoom - new zooming required, kZoomOps - other ops in action, kNoZoom - no zooming or ops

Definition at line 66 of file TASImage.h.

◆ fZoomWidth

UInt_t TASImage::fZoomWidth
protected

! width of zoomed image in image pixels

Definition at line 64 of file TASImage.h.


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