12 #ifndef ROOT_TAttImage 13 #define ROOT_TAttImage 49 virtual Int_t *GetRootColors();
90 virtual void ResetAttImage(
Option_t *option=
"");
91 virtual void SaveImageAttributes(std::ostream &out,
const char *
name,
95 virtual void SetConstRatio(
Bool_t constRatio =
kTRUE);
98 { fImageCompression = (lcompression > 100) ? 100 : lcompression; }
100 { fImageQuality = lquality;}
102 virtual void StartPaletteEditor();
virtual void EditorClosed()
Double_t * fPoints
[fNumPoints] value of each anchor point [0..1]
TPaletteEditor(TAttImage *attImage, UInt_t w, UInt_t h)
Constructor.
EImageQuality GetImageQuality() const
EImageQuality fImageQuality
OPTION={GetMethod="GetImageQuality";SetMethod="SetImageQuality";Items=(kImgDefault="Default",kImgPoor="Poor",kImgFast="Fast",kImgGood="Good",kImgBest="Best")}
virtual void SetImageQuality(EImageQuality lquality)
Bool_t fPaletteEnabled
! kTRUE - palette is drawn on the image
UShort_t * fColorRed
[fNumPoints] red color at each anchor point
#define ClassDef(name, id)
virtual const TImagePalette & GetPalette() const
UInt_t fImageCompression
compression [0 .. 100] 0: no compression
R__EXTERN TImagePalette * gWebImagePalette
Edit the palette via a GUI.
TImagePalette fPalette
color palette for value -> color conversion
UShort_t * fColorAlpha
[fNumPoints] alpha at each anchor point
UInt_t GetImageCompression() const
virtual ~TPaletteEditor()
UInt_t fNumPoints
number of anchor points
Bool_t IsPaletteEnabled() const
UShort_t * fColorBlue
[fNumPoints] blue color at each anchor point
Bool_t fConstRatio
keep aspect ratio of image on the screen
virtual void SetImageCompression(UInt_t lcompression)
void Copy(void *source, void *dest)
virtual void SetPaletteEnabled(Bool_t on=kTRUE)
A class to define a conversion from pixel values to pixel color.
Binding & operator=(OUT(*fun)(void))
Mother of all ROOT objects.
UShort_t * fColorGreen
[fNumPoints] green color at each anchor point
TPaletteEditor * fPaletteEditor
! GUI to edit the color palette
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
R__EXTERN TImagePalette * gHistImagePalette
virtual void CloseWindow()
Closes the window and deletes itself.
Bool_t GetConstRatio() const
static constexpr double g