#include <cpixmap.h>

Public Member Functions | |
| CPixmap () | |
| Default ctor. | |
| ~CPixmap () | |
| Default dtor. | |
| void | read (std::ifstream &in) |
| Reads Pixmap from filestream. On error an exception is thrown. | |
| void | write (std::ofstream &out) |
| Writes Pixmap to filestream. | |
| const uint32_t | getPixelDataSize () |
| Return size of pixelbuffer. | |
| const uint32_t | getHeight () |
| Return height of bitmap in pixel. | |
| const uint32_t | getWidth () |
| Return width of bitmap in pixel. | |
| const bool | hasColorTable () |
| Check if bitmap has a colortable (we don't support this yet for windows bitmaps). | |
| const bool | isMirrored () |
| Windows Bitmaps can be stored upside down. | |
Protected Member Functions | |
| std::string | getLine (std::ifstream &in, bool ignore_comments=true) |
| read trimmed line (terminated by ) from filestream | |
| std::string | getCArrayLine (std::ifstream &in) |
| read trimmed c-arrayline from filestream | |
| const std::string | getXPMColorID (unsigned int index, unsigned int length) |
| get xpm color identifier, generated using an index | |
Protected Attributes | |
| PIXMAP_FILEHEADER | m_fileheader |
| std::string | m_imagename |
Classes | |
| struct | PIXMAP_FILEHEADER |
| Pixmap Header structure. More... | |
In order to support operations on pixmaps in color mode an implementations of CPixelFormat is used. These classe are allowed to modify the pixmap header, pixelbuffer and color table directly.
On error CFile::FileError is thrown.
| CPixmap::CPixmap | ( | ) |
Default ctor.
| - |
| none |
| CPixmap::~CPixmap | ( | ) | [inline] |
Default dtor.
| - |
| none |
| void CPixmap::read | ( | std::ifstream & | in | ) | [virtual] |
Reads Pixmap from filestream. On error an exception is thrown.
| in | filestream to read data from |
| CFile::FileError | ||
| bad_alloc |
Implements CBitmap.
| void CPixmap::write | ( | std::ofstream & | out | ) | [virtual] |
Writes Pixmap to filestream.
| out | filestream to read data from |
| FileError | ||
| bad_alloc |
Implements CBitmap.
| const uint32_t CPixmap::getPixelDataSize | ( | ) | [inline, virtual] |
Return size of pixelbuffer.
| - |
| none |
Implements CBitmap.
| const uint32_t CPixmap::getHeight | ( | ) | [inline, virtual] |
Return height of bitmap in pixel.
| - |
| none |
Implements CBitmap.
| const uint32_t CPixmap::getWidth | ( | ) | [inline, virtual] |
Return width of bitmap in pixel.
| - |
| none |
Implements CBitmap.
| const bool CPixmap::hasColorTable | ( | ) | [inline, virtual] |
Check if bitmap has a colortable (we don't support this yet for windows bitmaps).
| - |
| none |
Implements CBitmap.
| const bool CPixmap::isMirrored | ( | ) | [inline, virtual] |
Windows Bitmaps can be stored upside down.
| - |
| none |
Implements CBitmap.
| std::string CPixmap::getLine | ( | std::ifstream & | in, | |
| bool | ignore_comments = true | |||
| ) | [protected] |
read trimmed line (terminated by
) from filestream
| in | filestream to read data from | |
| ignore_comments | true: ignore c-like comments |
| none |
| std::string CPixmap::getCArrayLine | ( | std::ifstream & | in | ) | [protected] |
read trimmed c-arrayline from filestream
| in | filestream to read data from |
| FileError |
| const std::string CPixmap::getXPMColorID | ( | unsigned int | index, | |
| unsigned int | length | |||
| ) | [protected] |
get xpm color identifier, generated using an index
| index | index used to generate the xpm color identifier | |
| length | length of xpm color identifier |
| FileError |
PIXMAP_FILEHEADER CPixmap::m_fileheader [protected] |
fileheader
std::string CPixmap::m_imagename [protected] |
name of image/c-array
1.5.3