 |
OpendTect
6.6
|
Go to the documentation of this file.
14 #include "uibasemod.h"
24 uiRGBArray(
bool withalpha);
26 uiRGBArray(
const char* filename);
27 virtual ~uiRGBArray();
29 virtual Color get(
int,
int)
const;
30 virtual bool set(
int,
int,
const Color&);
32 virtual unsigned char* getData();
33 virtual const unsigned char* getData()
const;
35 virtual char nrComponents()
const {
return withalpha_ ? 4 : 3; }
36 virtual int getSize(
bool xdir)
const;
41 void enableAlpha(
bool yn ) { withalpha_ = yn; }
43 bool save(
const char* fnm,
const char* fmt=0,
44 int quality=-1)
const;
46 const mQtclass(QImage&) qImage()
const {
return *qimg_; }
47 mQtclass(QImage&) qImage() {
return *qimg_; }
Class To load image files, and return the image data in RGBImage object.
Definition: odimage.h:87
virtual void setSize(const uiSize &)
#define mFDQtclass(cls)
Definition: commondefs.h:233
#define mExpClass(module)
Definition: commondefs.h:177
Definition: uirgbarray.h:58
#define mODTextTranslationClass(clss)
Definition: uistring.h:40
Class for Red, Green, Blue image.
Definition: odimage.h:28
OD::RGBImage * loadImage(const char *, uiString &) const
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
#define mQtclass(cls)
Definition: commondefs.h:234
String that is able to hold international (UTF-8) strings for the user interface.
Definition: uistring.h:121
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer,...
Definition: color.h:26
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021