Logo ROOT  
Reference Guide
TImage.h
Go to the documentation of this file.
1 // @(#)root/graf:$Id$
2 // Author: Fons Rademakers, Reiner Rohlfs 15/10/2001
3 
4 /*************************************************************************
5  * Copyright (C) 2001-2001, Rene Brun, Fons Rademakers and Reiner Rohlfs *
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 #ifndef ROOT_TImage
13 #define ROOT_TImage
14 
15 
16 #include "TNamed.h"
17 
18 #include "TAttImage.h"
19 #include "GuiTypes.h"
20 #include "TVectorDfwd.h"
21 
22 class TVirtualPad;
23 class TArrayD;
24 class TArrayL;
25 class TH2D;
26 class TPoint;
27 class TText;
28 
29 class TImage : public TNamed, public TAttImage {
30 
31 friend TImage operator+(const TImage &i1, const TImage &s2);
32 friend TImage operator/(const TImage &i1, const TImage &s2);
33 
34 public:
35  // Defines image file types
37  kXpm = 0,
56  };
57 
58  enum EText3DType {
59  kPlain = 0, // regular 2D text
70  };
71 
72  enum ECharType {
73  kUTF8 = 0,
74  kChar = 1,
76  };
77 
78  enum ETileType {
79  kStretch = 0,
83  };
84 
85  enum ECoordMode {
88  };
89 
90  enum EColorChan {
91  kRedChan = BIT(0),
93  kBlueChan = BIT(2),
96  };
97 
98 protected:
99  TImage(const char *file) : TNamed(file, "") { }
100  TImage() { }
101 
102 public:
103  TImage(const TImage &img) : TNamed(img), TAttImage(img) { }
104  TImage &operator=(const TImage &img)
105  { TNamed::operator=(img); TAttImage::operator=(img); return *this; }
106  TImage(UInt_t /*w*/, UInt_t /*h*/) : TNamed(), TAttImage() { }
107 
108  virtual ~TImage() { }
109 
110  // Cloning
111  virtual TObject *Clone(const char *) const { return 0; }
112 
113  // Input / output
114  virtual void ReadImage(const char * /*file*/, EImageFileTypes /*type*/ = TImage::kUnknown) {}
115  virtual void WriteImage(const char * /*file*/, EImageFileTypes /*type*/ = TImage::kUnknown) {}
116  virtual void SetImage(const Double_t * /*imageData*/, UInt_t /*width*/, UInt_t /*height*/, TImagePalette * /*palette*/ = 0) {}
117  virtual void SetImage(const TArrayD & /*imageData*/, UInt_t /*width*/, TImagePalette * /*palette*/ = 0) {}
118  virtual void SetImage(const TVectorD & /*imageData*/, UInt_t /*width*/, TImagePalette * /*palette*/ = 0) {}
119  virtual void SetImage(Pixmap_t /*pxm*/, Pixmap_t /*mask*/ = 0) {}
120 
121  // Create an image from the given pad. (See TASImage::FromPad)
122  virtual void FromPad(TVirtualPad * /*pad*/, Int_t /*x*/ = 0, Int_t /*y*/ = 0, UInt_t /*w*/ = 0, UInt_t /*h*/ = 0) {}
123 
124  // Restore the image original size. (See TASImage::UnZoom)
125  virtual void UnZoom() {}
126 
127  // Zoom the image. (See TASImage::Zoom)
128  virtual void Zoom(UInt_t /*offX*/, UInt_t /*offY*/, UInt_t /*width*/, UInt_t /*height*/) {}
129 
130  // Flip the image by a multiple of 90 degrees. (See TASImage::Flip)
131  virtual void Flip(Int_t /*flip*/ = 180) {}
132 
133  // Converts image to Gray. (See TASImage::Gray)
134  virtual void Gray(Bool_t /*on*/ = kTRUE) {}
135  virtual Bool_t IsGray() const { return kFALSE; }
136 
137  // Mirror the image. (See TASImage::Mirror)
138  virtual void Mirror(Bool_t /*vert*/ = kTRUE) {}
139 
140  // Scale the image. (See TASImage::Scale)
141  virtual void Scale(UInt_t /*width*/, UInt_t /*height*/) {}
142 
143  // Slice the image. (See TASImage::Slice)
144  virtual void Slice(UInt_t /*xStart*/, UInt_t /*xEnd*/, UInt_t /*yStart*/, UInt_t /*yEnd*/,
145  UInt_t /*toWidth*/, UInt_t /*toHeight*/) {}
146 
147  // Tile the image. (See TASImage::Tile)
148  virtual void Tile(UInt_t /*width*/, UInt_t /*height*/) {}
149 
150  // Crop the image. (See TASImage::Crop)
151  virtual void Crop(Int_t /*x*/ = 0, Int_t /*y*/ = 0, UInt_t /*width*/ = 0, UInt_t /*height*/ = 0) {}
152 
153  // Enlarge image. (See TASImage::Pad)
154  virtual void Pad(const char * /*color*/ = "#FFFFFFFF", UInt_t /*left*/ = 0,
155  UInt_t /*right*/ = 0, UInt_t /*top*/ = 0, UInt_t /*bottom*/ = 0) {}
156 
157  // Gaussian blurr. (See TASImage::Blur)
158  virtual void Blur(Double_t /*horizontal*/ = 3, Double_t /*vertical*/ = 3) { }
159 
160  // Reduces colordepth of an image. (See TASImage::Vectorize)
161  virtual Double_t *Vectorize(UInt_t /*max_colors*/ = 256, UInt_t /*dither*/ = 4, Int_t /*opaque_threshold*/ = 0) { return 0; }
162 
163  // (See TASImage::HSV)
164  virtual void HSV(UInt_t /*hue*/ = 0, UInt_t /*radius*/ = 360, Int_t /*H*/ = 0, Int_t /*S*/ = 0, Int_t /*V*/ = 0,
165  Int_t /*x*/ = 0, Int_t /*y*/ = 0, UInt_t /*width*/ = 0, UInt_t /*height*/ = 0) {}
166 
167  // Render multipoint gradient inside a rectangle. (See TASImage::Gradient)
168  virtual void Gradient(UInt_t /*angle*/ = 0, const char * /*colors*/ = "#FFFFFF #000000", const char * /*offsets*/ = 0,
169  Int_t /*x*/ = 0, Int_t /*y*/ = 0, UInt_t /*width*/ = 0, UInt_t /*height*/ = 0) {}
170 
171  // Merge two images. (See TASImage::Merge)
172  virtual void Merge(const TImage * /*im*/, const char * /*op*/ = "alphablend", Int_t /*x*/ = 0, Int_t /*y*/ = 0) {}
173 
174  // Append image. (See TASImage::Append)
175  virtual void Append(const TImage * /*im*/, const char * /*option*/ = "+", const char * /*color*/ = "#00000000") {}
176 
177  // Bevel effect. (See TASImage::Bevel)
178  virtual void Bevel(Int_t /*x*/ = 0, Int_t /*y*/ = 0, UInt_t /*width*/ = 0, UInt_t /*height*/ = 0,
179  const char * /*hi*/ = "#ffdddddd", const char * /*lo*/ = "#ff555555",
180  UShort_t /*thick*/ = 1, Bool_t /*pressed*/ = kFALSE) {}
181 
182  virtual void BeginPaint(Bool_t /*fast*/ = kTRUE) {}
183  virtual void EndPaint() {}
184  virtual void DrawLine(UInt_t /*x1*/, UInt_t /*y1*/, UInt_t /*x2*/, UInt_t /*y2*/,
185  const char * /*col*/ = "#000000", UInt_t /*thick*/ = 1) {}
186  virtual void DrawDashLine(UInt_t /*x1*/, UInt_t /*y1*/, UInt_t /*x2*/, UInt_t /*y2*/, UInt_t /*nDash*/,
187  const char * /*pDash*/, const char * /*col*/ = "#000000", UInt_t /*thick*/ = 1) {}
188  virtual void DrawBox(Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/,
189  const char * /*col*/ = "#000000", UInt_t /*thick*/ = 1, Int_t /*mode*/ = 0) {}
190  virtual void DrawRectangle(UInt_t /*x*/, UInt_t /*y*/, UInt_t /*w*/, UInt_t /*h*/,
191  const char * /*col*/ = "#000000", UInt_t /*thick*/ = 1) {}
192  virtual void FillRectangle(const char * /*col*/ = 0, Int_t /*x*/ = 0, Int_t /*y*/ = 0,
193  UInt_t /*width*/ = 0, UInt_t /*height*/ = 0) {}
194  virtual void DrawPolyLine(UInt_t /*nn*/, TPoint * /*xy*/, const char * /*col*/ = "#000000",
195  UInt_t /*thick*/ = 1, TImage::ECoordMode /*mode*/ = kCoordModeOrigin) {}
196  virtual void PutPixel(Int_t /*x*/, Int_t /*y*/, const char * /*col*/ = "#000000") {}
197  virtual void PolyPoint(UInt_t /*npt*/, TPoint * /*ppt*/, const char * /*col*/ = "#000000",
198  TImage::ECoordMode /*mode*/ = kCoordModeOrigin) {}
199  virtual void DrawSegments(UInt_t /*nseg*/, Segment_t * /*seg*/, const char * /*col*/ = "#000000", UInt_t /*thick*/ = 1) {}
200  virtual void DrawText(Int_t /*x*/ = 0, Int_t /*y*/ = 0, const char * /*text*/ = "", Int_t /*size*/ = 12,
201  const char * /*color*/ = 0, const char * /*font*/ = "fixed",
202  EText3DType /*type*/ = TImage::kPlain, const char * /*fore_file*/ = 0, Float_t /*angle*/ = 0) { }
203  virtual void DrawText(TText * /*text*/, Int_t /*x*/ = 0, Int_t /*y*/ = 0) { }
204  virtual void FillPolygon(UInt_t /*npt*/, TPoint * /*ppt*/, const char * /*col*/ = "#000000",
205  const char * /*stipple*/ = 0, UInt_t /*w*/ = 16, UInt_t /*h*/ = 16) {}
206  virtual void FillPolygon(UInt_t /*npt*/, TPoint * /*ppt*/, TImage * /*tile*/) {}
207  virtual void CropPolygon(UInt_t /*npt*/, TPoint * /*ppt*/) {}
208  virtual void DrawFillArea(UInt_t /*npt*/, TPoint * /*ppt*/, const char * /*col*/ = "#000000",
209  const char * /*stipple*/ = 0, UInt_t /*w*/ = 16, UInt_t /*h*/ = 16) {}
210  virtual void DrawFillArea(UInt_t /*npt*/, TPoint * /*ppt*/, TImage * /*tile*/) {}
211  virtual void FillSpans(UInt_t /*npt*/, TPoint * /*ppt*/, UInt_t * /*widths*/, const char * /*col*/ = "#000000",
212  const char * /*stipple*/ = 0, UInt_t /*w*/ = 16, UInt_t /*h*/ = 16) {}
213  virtual void FillSpans(UInt_t /*npt*/, TPoint * /*ppt*/, UInt_t * /*widths*/, TImage * /*tile*/) {}
214  virtual void CropSpans(UInt_t /*npt*/, TPoint * /*ppt*/, UInt_t * /*widths*/) {}
215  virtual void CopyArea(TImage * /*dst*/, Int_t /*xsrc*/, Int_t /*ysrc*/, UInt_t /*w*/, UInt_t /*h*/,
216  Int_t /*xdst*/ = 0, Int_t /*ydst*/ = 0, Int_t /*gfunc*/ = 3, EColorChan /*chan*/ = kAllChan) {}
217  virtual void DrawCellArray(Int_t /*x1*/, Int_t /*y1*/, Int_t /*x2*/, Int_t /*y2*/, Int_t /*nx*/, Int_t /*ny*/, UInt_t * /*ic*/) {}
218  virtual void FloodFill(Int_t /*x*/, Int_t /*y*/, const char * /*col*/, const char * /*min_col*/, const char * /*max_col*/ = 0) {}
219  virtual 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) {}
220  virtual void DrawStraightEllips(Int_t /*x*/, Int_t /*y*/, Int_t /*rx*/, Int_t /*ry*/, const char * /*col*/ = "#000000", Int_t /*thick*/ = 1) {}
221  virtual void DrawCircle(Int_t /*x*/, Int_t /*y*/, Int_t /*r*/, const char * /*col*/ = "#000000", Int_t /*thick*/ = 1) {}
222  virtual 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) {}
223  virtual 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) {}
224 
225  virtual void SetEditable(Bool_t /*on*/ = kTRUE) {}
226  virtual Bool_t IsEditable() const { return kFALSE; }
227 
228  virtual UInt_t GetWidth() const { return 0; }
229  virtual UInt_t GetHeight() const { return 0; }
230  virtual Bool_t IsValid() const { return kTRUE; }
231  virtual TImage *GetScaledImage() const { return 0; }
232 
233  virtual TArrayL *GetPixels(Int_t /*x*/= 0, Int_t /*y*/= 0, UInt_t /*w*/ = 0, UInt_t /*h*/ = 0) { return 0; }
234  virtual TArrayD *GetArray(UInt_t /*w*/ = 0, UInt_t /*h*/ = 0, TImagePalette * = gWebImagePalette) { return 0; }
235  virtual Pixmap_t GetPixmap() { return 0; }
236  virtual Pixmap_t GetMask() { return 0; }
237  virtual UInt_t *GetArgbArray() { return 0; }
238  virtual UInt_t *GetRgbaArray() { return 0; }
239  virtual Double_t *GetVecArray() { return 0; }
240  virtual UInt_t *GetScanline(UInt_t /*y*/) { return 0; }
241  virtual void GetImageBuffer(char ** /*buffer*/, int* /*size*/, EImageFileTypes /*type*/ = TImage::kPng) {}
242  virtual Bool_t SetImageBuffer(char ** /*buffer*/, EImageFileTypes /*type*/ = TImage::kPng) { return kFALSE; }
243  virtual 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*/ = "") { }
244  virtual void FromWindow(Drawable_t /*wid*/, Int_t /*x*/ = 0, Int_t /*y*/ = 0, UInt_t /*w*/ = 0, UInt_t /*h*/ = 0) {}
245  virtual void FromGLBuffer(UChar_t* /*buf*/, UInt_t /*w*/, UInt_t /*h*/) {}
246  static EImageFileTypes GetImageFileTypeFromFilename(const char* opt);
247 
248  static TImage *Create();
249  static TImage *Open(const char *file, EImageFileTypes type = kUnknown);
250  static TImage *Open(char **data);
251  static TImage *Open(const char *name, const Double_t *imageData, UInt_t width, UInt_t height, TImagePalette *palette);
252  static TImage *Open(const char *name, const TArrayD &imageData, UInt_t width, TImagePalette *palette = 0);
253  static TImage *Open(const char *name, const TVectorD &imageData, UInt_t width, TImagePalette *palette = 0);
254 
255  TImage &operator+=(const TImage &i) { Append(&i, "+"); return *this; }
256  TImage &operator/=(const TImage &i) { Append(&i, "/"); return *this; }
257 
258  virtual void ls(Option_t *option="") const;
259 
260  ClassDef(TImage,1) // Abstract image class
261 };
262 
263 
264 #endif
TAttImage
Definition: TAttImage.h:59
TImage::Gradient
virtual void Gradient(UInt_t=0, const char *="#FFFFFF #000000", const char *=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:168
TImage::Clone
virtual TObject * Clone(const char *) const
Make a clone of an object using the Streamer facility.
Definition: TImage.h:111
TImage::DrawSegments
virtual void DrawSegments(UInt_t, Segment_t *, const char *="#000000", UInt_t=1)
Definition: TImage.h:199
kTRUE
const Bool_t kTRUE
Definition: RtypesCore.h:91
Pixmap_t
Handle_t Pixmap_t
Definition: GuiTypes.h:29
TImage::TImage
TImage(const TImage &img)
Definition: TImage.h:103
TImage::SetEditable
virtual void SetEditable(Bool_t=kTRUE)
Definition: TImage.h:225
TImage::kCoordModeOrigin
@ kCoordModeOrigin
Definition: TImage.h:86
TAttImage.h
TImage::operator+=
TImage & operator+=(const TImage &i)
Definition: TImage.h:255
TImage::Merge
virtual void Merge(const TImage *, const char *="alphablend", Int_t=0, Int_t=0)
Definition: TImage.h:172
TImage::FillSpans
virtual void FillSpans(UInt_t, TPoint *, UInt_t *, const char *="#000000", const char *=0, UInt_t=16, UInt_t=16)
Definition: TImage.h:211
TImage::kPpm
@ kPpm
Definition: TImage.h:43
TImage::operator/=
TImage & operator/=(const TImage &i)
Definition: TImage.h:256
TImage::DrawDashLine
virtual void DrawDashLine(UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, const char *, const char *="#000000", UInt_t=1)
Definition: TImage.h:186
TImage::~TImage
virtual ~TImage()
Definition: TImage.h:108
TImage::kGreenChan
@ kGreenChan
Definition: TImage.h:92
TImage::EText3DType
EText3DType
Definition: TImage.h:58
TImage::Create
static TImage * Create()
Create an image.
Definition: TImage.cxx:35
UShort_t
unsigned short UShort_t
Definition: RtypesCore.h:40
TImage::kCur
@ kCur
Definition: TImage.h:47
TImage::kPlain
@ kPlain
Definition: TImage.h:59
TNamed::operator=
TNamed & operator=(const TNamed &rhs)
TNamed assignment operator.
Definition: TNamed.cxx:51
TImage::EColorChan
EColorChan
Definition: TImage.h:90
TImage::kBmp
@ kBmp
Definition: TImage.h:45
TImage::SetImageBuffer
virtual Bool_t SetImageBuffer(char **, EImageFileTypes=TImage::kPng)
Definition: TImage.h:242
TImage::kCoordModePrevious
@ kCoordModePrevious
Definition: TImage.h:87
TImage::DrawText
virtual void DrawText(Int_t=0, Int_t=0, const char *="", Int_t=12, const char *=0, const char *="fixed", EText3DType=TImage::kPlain, const char *=0, Float_t=0)
Definition: TImage.h:200
TNamed.h
TImage::kChar
@ kChar
Definition: TImage.h:74
TImage::CropPolygon
virtual void CropPolygon(UInt_t, TPoint *)
Definition: TImage.h:207
TImage::FromPad
virtual void FromPad(TVirtualPad *, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:122
operator=
Binding & operator=(OUT(*fun)(void))
Definition: TRInterface_Binding.h:11
Float_t
float Float_t
Definition: RtypesCore.h:57
width
include TDocParser_001 C image html pict1_TDocParser_001 png width
Definition: TDocParser.cxx:121
TImage::kOutlineFull
@ kOutlineFull
Definition: TImage.h:68
TImage::Flip
virtual void Flip(Int_t=180)
Definition: TImage.h:131
TImage::ls
virtual void ls(Option_t *option="") const
List this image with its attributes.
Definition: TImage.cxx:109
TImage
Definition: TImage.h:29
TImage::EndPaint
virtual void EndPaint()
Definition: TImage.h:183
TImage::kShadeAbove
@ kShadeAbove
Definition: TImage.h:62
TImage::FillPolygon
virtual void FillPolygon(UInt_t, TPoint *, const char *="#000000", const char *=0, UInt_t=16, UInt_t=16)
Definition: TImage.h:204
TImage::GetHeight
virtual UInt_t GetHeight() const
Definition: TImage.h:229
TImage::kSunken
@ kSunken
Definition: TImage.h:61
TVectorDfwd.h
TImage::TImage
TImage(const char *file)
Definition: TImage.h:99
TImage::DrawCellArray
virtual void DrawCellArray(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, UInt_t *)
Definition: TImage.h:217
TImage::k3DTypes
@ k3DTypes
Definition: TImage.h:69
TImage::ECoordMode
ECoordMode
Definition: TImage.h:85
TImage::kStretchY
@ kStretchY
Definition: TImage.h:81
TImage::kGif
@ kGif
Definition: TImage.h:48
TImage::Open
static TImage * Open(const char *file, EImageFileTypes type=kUnknown)
Open a specified image file.
Definition: TImage.cxx:118
TImage::TImage
TImage(UInt_t, UInt_t)
Definition: TImage.h:106
TImage::GetImageFileTypeFromFilename
static EImageFileTypes GetImageFileTypeFromFilename(const char *opt)
Return the image type for the extension specified in filename.
Definition: TImage.cxx:59
TImage::ECharType
ECharType
Definition: TImage.h:72
TImage::Slice
virtual void Slice(UInt_t, UInt_t, UInt_t, UInt_t, UInt_t, UInt_t)
Definition: TImage.h:144
TImage::DrawLine
virtual void DrawLine(UInt_t, UInt_t, UInt_t, UInt_t, const char *="#000000", UInt_t=1)
Definition: TImage.h:184
bool
Drawable_t
Handle_t Drawable_t
Definition: GuiTypes.h:30
TImage::kPnm
@ kPnm
Definition: TImage.h:44
gWebImagePalette
R__EXTERN TImagePalette * gWebImagePalette
Definition: TAttImage.h:110
TImage::kOutlineAbove
@ kOutlineAbove
Definition: TImage.h:66
TImage::UnZoom
virtual void UnZoom()
Definition: TImage.h:125
TImage::kGZCompressedXpm
@ kGZCompressedXpm
Definition: TImage.h:39
TImage::GetScanline
virtual UInt_t * GetScanline(UInt_t)
Definition: TImage.h:240
TImage::DrawStraightEllips
virtual void DrawStraightEllips(Int_t, Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
Definition: TImage.h:220
TImage::Tile
virtual void Tile(UInt_t, UInt_t)
Definition: TImage.h:148
TImage::DrawFillArea
virtual void DrawFillArea(UInt_t, TPoint *, const char *="#000000", const char *=0, UInt_t=16, UInt_t=16)
Definition: TImage.h:208
TImage::kStretchX
@ kStretchX
Definition: TImage.h:82
Option_t
const typedef char Option_t
Definition: RtypesCore.h:66
TImage::GetVecArray
virtual Double_t * GetVecArray()
Definition: TImage.h:239
TImage::BeginPaint
virtual void BeginPaint(Bool_t=kTRUE)
Definition: TImage.h:182
TImage::Gray
virtual void Gray(Bool_t=kTRUE)
Definition: TImage.h:134
TImage::DrawFillArea
virtual void DrawFillArea(UInt_t, TPoint *, TImage *)
Definition: TImage.h:210
TImage::Append
virtual void Append(const TImage *, const char *="+", const char *="#00000000")
Definition: TImage.h:175
TImage::kUTF8
@ kUTF8
Definition: TImage.h:73
TImage::Blur
virtual void Blur(Double_t=3, Double_t=3)
Definition: TImage.h:158
TImage::TImage
TImage()
Definition: TImage.h:100
TImage::kAllChan
@ kAllChan
Definition: TImage.h:95
TImage::Scale
virtual void Scale(UInt_t, UInt_t)
Definition: TImage.h:141
TImage::DrawEllips2
virtual void DrawEllips2(Int_t, Int_t, Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
Definition: TImage.h:223
TImage::kUnicode
@ kUnicode
Definition: TImage.h:75
TImage::FillRectangle
virtual void FillRectangle(const char *=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:192
TImage::kXml
@ kXml
Definition: TImage.h:53
GuiTypes.h
TImage::Mirror
virtual void Mirror(Bool_t=kTRUE)
Definition: TImage.h:138
TImage::kJpeg
@ kJpeg
Definition: TImage.h:41
TNamed
Definition: TNamed.h:29
TImage::kEmbossedThick
@ kEmbossedThick
Definition: TImage.h:64
TImage::GetArray
virtual TArrayD * GetArray(UInt_t=0, UInt_t=0, TImagePalette *=gWebImagePalette)
Definition: TImage.h:234
kFALSE
const Bool_t kFALSE
Definition: RtypesCore.h:92
TImage::GetScaledImage
virtual TImage * GetScaledImage() const
Definition: TImage.h:231
TImage::GetMask
virtual Pixmap_t GetMask()
Definition: TImage.h:236
TImage::CopyArea
virtual void CopyArea(TImage *, Int_t, Int_t, UInt_t, UInt_t, Int_t=0, Int_t=0, Int_t=3, EColorChan=kAllChan)
Definition: TImage.h:215
TH2D
2-D histogram with a double per channel (see TH1 documentation)}
Definition: TH2.h:292
TImage::kUnknown
@ kUnknown
Definition: TImage.h:54
TImage::kZCompressedXpm
@ kZCompressedXpm
Definition: TImage.h:38
TImage::kTiff
@ kTiff
Definition: TImage.h:49
BIT
#define BIT(n)
Definition: Rtypes.h:85
UInt_t
unsigned int UInt_t
Definition: RtypesCore.h:46
TImage::kStretch
@ kStretch
Definition: TImage.h:79
TImage::DrawText
virtual void DrawText(TText *, Int_t=0, Int_t=0)
Definition: TImage.h:203
TImage::operator=
TImage & operator=(const TImage &img)
Definition: TImage.h:104
TImage::DrawEllips
virtual void DrawEllips(Int_t, Int_t, Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
Definition: TImage.h:222
TImage::WriteImage
virtual void WriteImage(const char *, EImageFileTypes=TImage::kUnknown)
Definition: TImage.h:115
TImage::kOutlineBelow
@ kOutlineBelow
Definition: TImage.h:67
TImage::PutPixel
virtual void PutPixel(Int_t, Int_t, const char *="#000000")
Definition: TImage.h:196
TImage::FromGLBuffer
virtual void FromGLBuffer(UChar_t *, UInt_t, UInt_t)
Definition: TImage.h:245
TImage::kRedChan
@ kRedChan
Definition: TImage.h:91
TImage::Crop
virtual void Crop(Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:151
TImage::PolyPoint
virtual void PolyPoint(UInt_t, TPoint *, const char *="#000000", TImage::ECoordMode=kCoordModeOrigin)
Definition: TImage.h:197
TImage::IsGray
virtual Bool_t IsGray() const
Definition: TImage.h:135
TImage::kXbm
@ kXbm
Definition: TImage.h:50
TImage::GetRgbaArray
virtual UInt_t * GetRgbaArray()
Definition: TImage.h:238
unsigned int
TImage::kSunkenThick
@ kSunkenThick
Definition: TImage.h:65
TImage::GetPixels
virtual TArrayL * GetPixels(Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:233
TImage::kAnimGif
@ kAnimGif
Definition: TImage.h:55
TImage::FillPolygon
virtual void FillPolygon(UInt_t, TPoint *, TImage *)
Definition: TImage.h:206
TImage::Vectorize
virtual Double_t * Vectorize(UInt_t=256, UInt_t=4, Int_t=0)
Definition: TImage.h:161
TImage::DrawCircle
virtual void DrawCircle(Int_t, Int_t, Int_t, const char *="#000000", Int_t=1)
Definition: TImage.h:221
TImage::GetWidth
virtual UInt_t GetWidth() const
Definition: TImage.h:228
TImage::GetArgbArray
virtual UInt_t * GetArgbArray()
Definition: TImage.h:237
TImage::HSV
virtual void HSV(UInt_t=0, UInt_t=360, Int_t=0, Int_t=0, Int_t=0, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:164
TImage::SetImage
virtual void SetImage(const TArrayD &, UInt_t, TImagePalette *=0)
Definition: TImage.h:117
TImage::SetImage
virtual void SetImage(const TVectorD &, UInt_t, TImagePalette *=0)
Definition: TImage.h:118
TImage::ETileType
ETileType
Definition: TImage.h:78
TImage::PaintImage
virtual void PaintImage(Drawable_t, Int_t, Int_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0, Option_t *="")
Definition: TImage.h:243
TVectorT
Definition: TMatrixTBase.h:78
TArrayL
Definition: TArrayL.h:27
TText
Definition: TText.h:22
TImage::FloodFill
virtual void FloodFill(Int_t, Int_t, const char *, const char *, const char *=0)
Definition: TImage.h:218
TPoint
Definition: TPoint.h:31
Double_t
double Double_t
Definition: RtypesCore.h:59
TVirtualPad
Definition: TVirtualPad.h:50
file
Definition: file.py:1
TImage::kEmbossed
@ kEmbossed
Definition: TImage.h:60
UChar_t
unsigned char UChar_t
Definition: RtypesCore.h:38
TObject
Definition: TObject.h:37
ClassDef
#define ClassDef(name, id)
Definition: Rtypes.h:325
TImage::kTga
@ kTga
Definition: TImage.h:52
TImage::GetPixmap
virtual Pixmap_t GetPixmap()
Definition: TImage.h:235
TImage::SetImage
virtual void SetImage(Pixmap_t, Pixmap_t=0)
Definition: TImage.h:119
name
char name[80]
Definition: TGX11.cxx:110
TImage::ReadImage
virtual void ReadImage(const char *, EImageFileTypes=TImage::kUnknown)
Definition: TImage.h:114
TImagePalette
Definition: TAttImage.h:33
TImage::CropSpans
virtual void CropSpans(UInt_t, TPoint *, UInt_t *)
Definition: TImage.h:214
TImage::Zoom
virtual void Zoom(UInt_t, UInt_t, UInt_t, UInt_t)
Definition: TImage.h:128
TImage::SetImage
virtual void SetImage(const Double_t *, UInt_t, UInt_t, TImagePalette *=0)
Definition: TImage.h:116
TImage::FromWindow
virtual void FromWindow(Drawable_t, Int_t=0, Int_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:244
TImage::DrawPolyLine
virtual void DrawPolyLine(UInt_t, TPoint *, const char *="#000000", UInt_t=1, TImage::ECoordMode=kCoordModeOrigin)
Definition: TImage.h:194
TImage::kXcf
@ kXcf
Definition: TImage.h:42
type
int type
Definition: TGX11.cxx:121
TImage::operator/
friend TImage operator/(const TImage &i1, const TImage &s2)
Definition: TImage.cxx:192
TImage::kAlphaChan
@ kAlphaChan
Definition: TImage.h:94
TArrayD
Definition: TArrayD.h:27
TImage::EImageFileTypes
EImageFileTypes
Definition: TImage.h:36
TImage::Bevel
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
Segment_t
Definition: GuiTypes.h:350
TImage::kIco
@ kIco
Definition: TImage.h:46
TImage::kBlueChan
@ kBlueChan
Definition: TImage.h:93
TImage::Pad
virtual void Pad(const char *="#FFFFFFFF", UInt_t=0, UInt_t=0, UInt_t=0, UInt_t=0)
Definition: TImage.h:154
TImage::GetImageBuffer
virtual void GetImageBuffer(char **, int *, EImageFileTypes=TImage::kPng)
Definition: TImage.h:241
TImage::DrawBox
virtual void DrawBox(Int_t, Int_t, Int_t, Int_t, const char *="#000000", UInt_t=1, Int_t=0)
Definition: TImage.h:188
TImage::kPng
@ kPng
Definition: TImage.h:40
TImage::DrawRectangle
virtual void DrawRectangle(UInt_t, UInt_t, UInt_t, UInt_t, const char *="#000000", UInt_t=1)
Definition: TImage.h:190
TImage::IsEditable
virtual Bool_t IsEditable() const
Definition: TImage.h:226
TImage::kFits
@ kFits
Definition: TImage.h:51
TImage::IsValid
virtual Bool_t IsValid() const
Definition: TImage.h:230
TImage::operator+
friend TImage operator+(const TImage &i1, const TImage &s2)
Definition: TImage.cxx:191
TImage::kXpm
@ kXpm
Definition: TImage.h:37
int
TImage::kShadeBelow
@ kShadeBelow
Definition: TImage.h:63
TImage::kTile
@ kTile
Definition: TImage.h:80
TImage::FillSpans
virtual void FillSpans(UInt_t, TPoint *, UInt_t *, TImage *)
Definition: TImage.h:213
TImage::DrawCubeBezier
virtual void DrawCubeBezier(Int_t, Int_t, Int_t, Int_t, Int_t, Int_t, const char *="#000000", UInt_t=1)
Definition: TImage.h:219