CPixelFormat_Indexed8 Class Reference

Implementation of CPixelFormat handling 24bit indexed bitmaps. More...

#include <cpixelformat_indexed8.h>

Inheritance diagram for CPixelFormat_Indexed8:

CPixelFormat

List of all members.

Public Member Functions

 CPixelFormat_Indexed8 (CBitmap *bitmap)
 Default ctor.
 ~CPixelFormat_Indexed8 ()
 Default dtor.
void getPixel (RGBPIXEL &pixel, uint32_t x, uint32_t y)
 Get pixel at coordinates x, y.
void setPixel (const RGBPIXEL &pixel, uint32_t x, uint32_t y)
 Modifies pixel at coordinates x, y.
uint32_t getBitCount ()
 returns the bitcount needed for indexing the color tabel.
void getMaxColor (RGBPIXEL &pixel)
 Get maximum values for RGB pixel.


Detailed Description

Implementation of CPixelFormat handling 24bit indexed bitmaps.

Modulname:
cpixelformat_bgr24
Author:
Guenther Neuwirth (0626638), Manuel Mausz (0728348)
Date:
02.05.2009
Implementation of CPixelFormat handling 24bit indexed bitmaps.

On error CPixelFormat::PixelFormatError is thrown.


Constructor & Destructor Documentation

CPixelFormat_Indexed8::CPixelFormat_Indexed8 ( CBitmap bitmap  )  [inline]

Default ctor.

Methodname:
CPixelFormat_Indexed8
Parameters:
bitmap pointer to CBitmap instance
Returns:
-
Global variables used:
none
Exceptions:
none 
Conditions:
none

CPixelFormat_Indexed8::~CPixelFormat_Indexed8 (  )  [inline]

Default dtor.

Methodname:
~CPixelFormat_Indexed8
Parameters:
- 
Returns:
-
Global variables used:
none
Exceptions:
none 
Conditions:
none


Member Function Documentation

void CPixelFormat_Indexed8::getPixel ( RGBPIXEL &  pixel,
uint32_t  x,
uint32_t  y 
)

Get pixel at coordinates x, y.

Methodname:
getPixel
Parameters:
pixel reference to pixel data
x x-coordinate
y y-coordinate
Returns:
-
Global variables used:
none
Exceptions:
PixelFormatError 
Conditions:
none

void CPixelFormat_Indexed8::setPixel ( const RGBPIXEL &  pixel,
uint32_t  x,
uint32_t  y 
)

Modifies pixel at coordinates x, y.

Methodname:
setPixel
Parameters:
pixel reference to new pixel data
x x-coordinate
y y-coordinate
Returns:
-
Global variables used:
none
Exceptions:
PixelFormatError 
Conditions:
none

uint32_t CPixelFormat_Indexed8::getBitCount (  )  [inline, virtual]

returns the bitcount needed for indexing the color tabel.

Methodname:
getBitCount
Parameters:
- 
Returns:
bitcount of indexes supported by this class
Global variables used:
none
Exceptions:
none 
Conditions:
none

Implements CPixelFormat.

void CPixelFormat_Indexed8::getMaxColor ( RGBPIXEL &  pixel  )  [inline]

Get maximum values for RGB pixel.

Methodname:
getMaxColor
Parameters:
pixel reference to pixel struct
Returns:
-
Global variables used:
none
Exceptions:
none 
Conditions:
none


The documentation for this class was generated from the following files:
Generated on Sun May 3 19:16:26 2009 for imgsynth2 by  doxygen 1.5.3