#include <cbitmap.h>

Public Member Functions | |
| CBitmap () | |
| Default ctor. | |
| ~CBitmap () | |
| Default dtor. | |
| void | read (std::ifstream &in) |
| Reads Windows Bitmap from filestream. On error an exception is thrown. | |
| void | write (std::ofstream &out) |
| Writes Windows Bitmap to filestream. | |
| void | callFunc (const std::string &func, const std::list< std::string > ¶ms) |
| Delegates the function and its parameters to the correct internal method. | |
| BITMAP_FILEHEADER & | getFileHeader () |
| Returns reference to fileheader structure of bitmap. | |
| BITMAP_INFOHEADER & | getInfoHeader () |
| Returns reference to infoheader structure of bitmap. | |
| uint8_t * | getPixelData () |
| Returns pointer to pixelbuffer. | |
Protected Member Functions | |
| void | fillrect (std::list< std::string > params) |
| Fills rectangle in image starting on position x, y width size width, height and color red, green, blue. | |
Protected Attributes | |
| BITMAP_FILEHEADER | m_fileheader |
| BITMAP_INFOHEADER | m_infoheader |
| uint8_t * | m_pixeldata |
| CPixelFormat * | m_pixelformat |
Classes | |
| struct | BITMAP_FILEHEADER |
| Windows Bitmap File Header structure. More... | |
| struct | BITMAP_INFOHEADER |
| Windows Bitmap Info Header structure. More... | |
In order to support operations on bitmaps with different color bitcounts different implementations of CPixelFormat are used. These classes are allowed to modify the bitmap headers and pixelbuffer directly.
On error CFile::FileError is thrown.
| CBitmap::CBitmap | ( | ) | [inline] |
Default ctor.
| - |
| none |
| CBitmap::~CBitmap | ( | ) |
Default dtor.
| - |
| none |
| void CBitmap::read | ( | std::ifstream & | in | ) | [virtual] |
Reads Windows Bitmap from filestream. On error an exception is thrown.
| in | filestream to read data from |
| CFile::FileError | ||
| bad_alloc |
Implements CFile.
| void CBitmap::write | ( | std::ofstream & | out | ) | [virtual] |
Writes Windows Bitmap to filestream.
| out | filestream to read data from |
| FileError | ||
| bad_alloc |
Implements CFile.
| void CBitmap::callFunc | ( | const std::string & | func, | |
| const std::list< std::string > & | params | |||
| ) | [virtual] |
Delegates the function and its parameters to the correct internal method.
| func | function name | |
| params | function parameters as list |
| ParserError |
Implements CFile.
| BITMAP_FILEHEADER& CBitmap::getFileHeader | ( | ) | [inline] |
Returns reference to fileheader structure of bitmap.
| - |
| none |
| BITMAP_INFOHEADER& CBitmap::getInfoHeader | ( | ) | [inline] |
Returns reference to infoheader structure of bitmap.
| - |
| none |
| uint8_t* CBitmap::getPixelData | ( | ) | [inline] |
Returns pointer to pixelbuffer.
| - |
| none |
| void CBitmap::fillrect | ( | std::list< std::string > | params | ) | [protected] |
Fills rectangle in image starting on position x, y width size width, height and color red, green, blue.
| params | function parameters as list |
| FileError |
BITMAP_FILEHEADER CBitmap::m_fileheader [protected] |
fileheader
BITMAP_INFOHEADER CBitmap::m_infoheader [protected] |
infoheader
uint8_t* CBitmap::m_pixeldata [protected] |
pointer to pixelbuffer
CPixelFormat* CBitmap::m_pixelformat [protected] |
pointer to CPixelFormat implementation
1.5.3