Internal and low level: a class used to read pack/unpack color pixmap (version 2) More...
Public Member Functions | |
Pixmap () | |
bool | read (MWAWInputStream &input, bool packed, bool colorTable, bool hasRectsMode, bool hasRegion) |
tries to read a pixmap | |
bool | savePixmap () const |
saves the pixmap in file (debugging function) | |
bool | unpackedData (unsigned char const *pData, int sz, int byteSz, int nSize, std::vector< unsigned char > &res) const |
creates the pixmap from the packdata | |
bool | readPixmapData (MWAWInputStream &input) |
parses the pixmap data zone | |
Public Attributes | |
int | m_rowBytes |
the num of bytes used to store a row | |
Box2i | m_rect |
the pixmap rectangle | |
int | m_version |
the pixmap version | |
int | m_packType |
the packing format | |
long | m_packSize |
size of data in the packed state | |
int | m_Res [2] |
horizontal/vertical definition | |
int | m_pixelType |
format of pixel image | |
int | m_pixelSize |
physical bit by image | |
int | m_compCount |
logical components per pixels | |
int | m_compSize |
logical bits by components | |
long | m_planeBytes |
offset to the next plane | |
shared_ptr< ColorTable > | m_colorTable |
the color table | |
Box2i | m_src |
the initial dimension | |
Box2i | m_dst |
another final dimension | |
shared_ptr< Region > | m_region |
the region | |
std::vector< int > | m_indices |
the pixmap indices | |
std::vector< MWAWColor > | m_colors |
the colors | |
int | m_mode |
the encoding mode ? | |
Friends | |
std::ostream & | operator<< (std::ostream &o, Pixmap const &f) |
operator<< for Pixmap |
Internal and low level: a class used to read pack/unpack color pixmap (version 2)
libmwaw_applepict1::Pixmap::Pixmap | ( | ) | [inline] |
bool libmwaw_applepict1::Pixmap::read | ( | MWAWInputStream & | input, |
bool | packed, | ||
bool | colorTable, | ||
bool | hasRectsMode, | ||
bool | hasRegion | ||
) | [inline] |
tries to read a pixmap
bool libmwaw_applepict1::Pixmap::readPixmapData | ( | MWAWInputStream & | input | ) | [inline] |
parses the pixmap data zone
Referenced by read().
bool libmwaw_applepict1::Pixmap::savePixmap | ( | ) | const [inline] |
saves the pixmap in file (debugging function)
bool libmwaw_applepict1::Pixmap::unpackedData | ( | unsigned char const * | pData, |
int | sz, | ||
int | byteSz, | ||
int | nSize, | ||
std::vector< unsigned char > & | res | ||
) | const [inline] |
creates the pixmap from the packdata
Referenced by readPixmapData().
std::vector<MWAWColor> libmwaw_applepict1::Pixmap::m_colors |
the colors
Referenced by readPixmapData(), and savePixmap().
shared_ptr<ColorTable> libmwaw_applepict1::Pixmap::m_colorTable |
the color table
Referenced by read(), readPixmapData(), and savePixmap().
logical components per pixels
Referenced by read(), and readPixmapData().
logical bits by components
Referenced by read().
another final dimension
Referenced by read().
std::vector<int> libmwaw_applepict1::Pixmap::m_indices |
the pixmap indices
Referenced by readPixmapData(), and savePixmap().
the encoding mode ?
Referenced by read().
size of data in the packed state
Referenced by read().
the packing format
Referenced by read(), and readPixmapData().
physical bit by image
Referenced by read(), and readPixmapData().
format of pixel image
Referenced by read().
offset to the next plane
Referenced by read().
the pixmap rectangle
Referenced by read(), readPixmapData(), and savePixmap().
shared_ptr<Region> libmwaw_applepict1::Pixmap::m_region |
the region
Referenced by read().
the num of bytes used to store a row
Referenced by read(), readPixmapData(), and unpackedData().
the initial dimension
Referenced by read().
the pixmap version
Referenced by read().