libmwaw_applepict1::Bitmap Struct Reference

Internal and low level: a class used to read pack/unpack black-white bitmap. More...

List of all members.

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
Box2i m_rect
 the bitmap rectangle
Box2i m_src
 the initial dimension
Box2i m_dst
 another final dimension
shared_ptr< Regionm_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

Detailed Description

Internal and low level: a class used to read pack/unpack black-white bitmap.


Constructor & Destructor Documentation


Member Function Documentation

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().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
Bitmap const &  f 
) [friend]

operator<< for Bitmap


Member Data Documentation

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 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().


The documentation for this struct was generated from the following file: