15 #include "uibasemod.h" 25 uiRGBArray(
bool withalpha);
26 uiRGBArray(const
OD::RGBImage&);
27 uiRGBArray(const
char* filename);
28 virtual ~uiRGBArray();
30 virtual
Color get(
int,
int) const;
31 virtual
bool set(
int,
int,const
Color&);
33 virtual
unsigned char* getData();
34 virtual const
unsigned char* getData() const;
36 virtual
char nrComponents()
const {
return withalpha_ ? 4 : 3; }
37 virtual int getSize(
bool xdir)
const;
42 void enableAlpha(
bool yn ) { withalpha_ = yn; }
44 bool save(
const char* fnm,
const char* fmt=0,
45 int quality=-1)
const;
47 const mQtclass(QImage&) qImage()
const {
return *qimg_; }
48 mQtclass(QImage&) qImage() {
return *qimg_; }
#define mExpClass(module)
Definition: commondefs.h:160
#define mQtclass(cls)
Definition: commondefs.h:229
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
virtual void setSize(const uiSize &)
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:29
Definition: uistring.h:89
Definition: uirgbarray.h:58
#define mFDQtclass(cls)
Definition: commondefs.h:228
OpendTect.
Definition: commontypes.h:29
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Class for Red, Green, Blue image.
Definition: odimage.h:28