TdkImageRGB Class Reference
[The Core Module]

Defines the TdkImageRGB class. More...

#include <TdkImageRGB.h>

Inheritance diagram for TdkImageRGB:

TdkImage TdkImageRGBA List of all members.

Public Member Functions

 TdkImageRGB (int w, int h, unsigned char *r, unsigned char *g, unsigned char *b)
 TdkImageRGB (int w, int h)
virtual ~TdkImageRGB ()
virtual TdkImageRepType getType ()
virtual unsigned char * getBand (int band)
virtual unsigned char * getRed ()
virtual unsigned char * getGreen ()
 Returns the red buffer.
virtual unsigned char * getBlue ()
 Returns the green buffer.
virtual bool getElement (int c, int l, unsigned char &val, int band)
 Returns the blue buffer.
virtual bool setElement (int c, int l, unsigned char val, int band)
virtual bool isValid ()

Protected Member Functions

virtual void clear ()
 The blue buffer.

Protected Attributes

unsigned char * _red
unsigned char * _green
 The red buffer.
unsigned char * _blue
 The green buffer.

Detailed Description

Defines the TdkImageRGB class.


Constructor & Destructor Documentation

TdkImageRGB::TdkImageRGB ( int  w,
int  h,
unsigned char *  r,
unsigned char *  g,
unsigned char *  b 
)

TdkImageRGB::TdkImageRGB ( int  w,
int  h 
)

TdkImageRGB::~TdkImageRGB (  )  [virtual]


Member Function Documentation

virtual TdkImageRepType TdkImageRGB::getType (  )  [inline, virtual]

Gets the image type.

Returns:
The image type.

Reimplemented from TdkImage.

Reimplemented in TdkImageRGBA.

unsigned char * TdkImageRGB::getBand ( int  band  )  [virtual]

Reimplemented in TdkImageRGBA.

virtual unsigned char* TdkImageRGB::getRed (  )  [inline, virtual]

virtual unsigned char* TdkImageRGB::getGreen (  )  [inline, virtual]

Returns the red buffer.

virtual unsigned char* TdkImageRGB::getBlue (  )  [inline, virtual]

Returns the green buffer.

bool TdkImageRGB::getElement ( int  c,
int  l,
unsigned char &  val,
int  band 
) [virtual]

Returns the blue buffer.

bool TdkImageRGB::setElement ( int  c,
int  l,
unsigned char  val,
int  band 
) [virtual]

bool TdkImageRGB::isValid (  )  [virtual]

Tells whether this image data is valid.

Returns:
True if the image data is valid.

Reimplemented from TdkImage.

Reimplemented in TdkImageRGBA.

void TdkImageRGB::clear (  )  [protected, virtual]

The blue buffer.

Reimplemented in TdkImageRGBA.


Member Data Documentation

unsigned char* TdkImageRGB::_red [protected]

unsigned char* TdkImageRGB::_green [protected]

The red buffer.

unsigned char* TdkImageRGB::_blue [protected]

The green buffer.


The documentation for this class was generated from the following files:
Generated on Fri Jun 15 16:54:40 2007 for TDK by  doxygen 1.5.2