12 #ifndef ROOT_TAttImage
13 #define ROOT_TAttImage
147 { fImageCompression = (lcompression > 100) ? 100 : lcompression; }
149 { fImageQuality = lquality;}
virtual void EditorClosed()
virtual ~TAttImage()
TAttImage destructor.
void Copy(TAttImage &attline) const
Copy this image attributes to a new attimage.
virtual void SetConstRatio(Bool_t constRatio=kTRUE)
Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.
Bool_t IsPaletteEnabled() const
TPaletteEditor(TAttImage *attImage, UInt_t w, UInt_t h)
Constructor.
EImageQuality fImageQuality
virtual void SetImageQuality(EImageQuality lquality)
virtual void SaveImageAttributes(std::ostream &out, const char *name, EImageQuality qualdef=kImgDefault, UInt_t comprdef=0, Bool_t constRatiodef=kTRUE)
Save image attributes as C++ statement(s) on output stream, but not the palette.
Bool_t fPaletteEnabled
GUI to edit the color palette.
EImageQuality GetImageQuality() const
#define ClassDef(name, id)
virtual ~TImagePalette()
Destructor.
UInt_t GetImageCompression() const
R__EXTERN TImagePalette * gWebImagePalette
Edit the palette via a GUI.
virtual const TImagePalette & GetPalette() const
virtual ~TPaletteEditor()
virtual void SetPalette(const TImagePalette *palette)
Set a new palette for the image.
TAttImage()
kTRUE - palette is drawn on the image
virtual Int_t * GetRootColors()
Returns a list of ROOT colors.
virtual void SetImageCompression(UInt_t lcompression)
virtual void SetPaletteEnabled(Bool_t on=kTRUE)
virtual Int_t FindColor(UShort_t r, UShort_t g, UShort_t b)
Returns an index of the closest color.
A class to define a conversion from pixel values to pixel color.
Mother of all ROOT objects.
TImagePalette & operator=(const TImagePalette &palette)
Assignment operator.
TImagePalette()
Default constructor, sets all pointers to 0.
Bool_t GetConstRatio() const
TPaletteEditor * fPaletteEditor
virtual void StartPaletteEditor()
Opens a GUI to edit the color palette.
R__EXTERN TImagePalette * gHistImagePalette
virtual void CloseWindow()
Closes the window and deletes itself.
virtual void ResetAttImage(Option_t *option="")
Reset this image attributes to default values.