Internal and low level: a class used to read pack/unpack black-white bitmap. More...
Public Member Functions | |
| Bitmap () | |
| bool | read (MWAWInputStream &input, bool packed, bool hasRegion) |
| tries to read a bitmap | |
| bool | saveBitmap () const |
| saves the bitmap in file (debugging function) | |
| bool | unpackedData (unsigned char const *pData, int sz) |
| creates the bitmap from the packdata | |
| bool | readBitmapData (MWAWInputStream &input, bool packed) |
| parses the bitmap data zone | |
Public Attributes | |
| int | m_rowBytes |
| the num of bytes used to store a row | |
| MWAWBox2i | m_rect |
| the bitmap rectangle | |
| MWAWBox2i | m_src |
| the initial dimension | |
| MWAWBox2i | m_dst |
| another final dimension | |
| shared_ptr< Region > | m_region |
| the region | |
| std::vector< unsigned char > | m_bitmap |
| the bitmap | |
| int | m_mode |
| the encoding mode ? | |
Friends | |
| std::ostream & | operator<< (std::ostream &o, Bitmap const &f) |
| operator<< for Bitmap | |
Internal and low level: a class used to read pack/unpack black-white bitmap.
| libmwaw_applepict1::Bitmap::Bitmap | ( | ) | [inline] |
| bool libmwaw_applepict1::Bitmap::read | ( | MWAWInputStream & | input, |
| bool | packed, | ||
| bool | hasRegion | ||
| ) | [inline] |
tries to read a bitmap
| bool libmwaw_applepict1::Bitmap::readBitmapData | ( | MWAWInputStream & | input, |
| bool | packed | ||
| ) | [inline] |
parses the bitmap data zone
Referenced by read().
| bool libmwaw_applepict1::Bitmap::saveBitmap | ( | ) | const [inline] |
saves the bitmap in file (debugging function)
| bool libmwaw_applepict1::Bitmap::unpackedData | ( | unsigned char const * | pData, |
| int | sz | ||
| ) | [inline] |
creates the bitmap from the packdata
Referenced by readBitmapData().
| std::vector<unsigned char> libmwaw_applepict1::Bitmap::m_bitmap |
the bitmap
Referenced by readBitmapData(), saveBitmap(), and unpackedData().
another final dimension
Referenced by read().
the encoding mode ?
Referenced by read().
the bitmap rectangle
Referenced by read(), readBitmapData(), and saveBitmap().
| shared_ptr<Region> libmwaw_applepict1::Bitmap::m_region |
the region
Referenced by read().
the num of bytes used to store a row
Referenced by read(), readBitmapData(), saveBitmap(), and unpackedData().
the initial dimension
Referenced by read().