33 virtual char nrComponents()
const = 0;
38 virtual bool hasAlpha()
const;
39 virtual bool setSize(
int,
int) = 0;
40 virtual int getSize(
bool xdir)
const = 0;
41 virtual Color get(int,int)
const = 0;
42 virtual bool set(int,int,
const Color&) = 0;
45 virtual int bufferSize()
const;
46 virtual void fill(
unsigned char*)
const;
52 virtual bool put(
const unsigned char*,
bool xdir_slowest=
true,
53 bool with_opacity=
false);
58 virtual bool blendWith(
const RGBImage& sourceimage,
59 bool blendtransparency =
false,
60 unsigned char blendtransparencyval = 0,
61 bool blendequaltransparency =
false,
62 bool with_opacity=
false);
76 virtual bool putFromBitmap(
const unsigned char* bitmap,
77 const unsigned char* mask = 0);
79 virtual const unsigned char*
getData()
const {
return 0; }
80 virtual unsigned char*
getData() {
return 0; }
102 static void setImageLoader(RGBImageLoader*);
106 virtual ~RGBImageLoader();
#define mExpClass(module)
Definition: commondefs.h:160
virtual unsigned char * getData()
Definition: odimage.h:80
Definition: uistring.h:89
Class To load image files, and return the image data in RGBImage object.
Definition: odimage.h:87
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
virtual const unsigned char * getData() const
Definition: odimage.h:79
virtual ~RGBImage()
Definition: odimage.h:31
static PtrMan< RGBImageLoader > imageloader_
Definition: odimage.h:98