a bitmap of MWAWColor to store true color bitmap More...
#include <MWAWPictBitmap.hxx>
Public Member Functions | |
| SubType | getSubType () const final |
| return the picture subtype | |
| int | cmp (MWAWPict const &a) const final |
| a virtual function used to obtain a strict order, must be redefined in the subs class | |
| bool | valid () const final |
| returns true if the picture is valid | |
| MWAWColor | getAverageColor () const final |
| returns the average color | |
| MWAWPictBitmapColor (MWAWVec2i const &sz, bool useAlphaChannel=false) | |
| the constructor | |
| MWAWVec2i const & | size () const |
| the picture size | |
| int | numRows () const |
| the number of rows | |
| int | numColumns () const |
| the number of columns | |
| MWAWColor | get (int i, int j) const |
| returns a cell content | |
| MWAWColor const * | getRow (int j) const |
| returns the cells content of a row | |
| void | set (int i, int j, MWAWColor const &v) |
| sets a cell contents | |
| void | setRow (int j, MWAWColor const *val) |
| sets all cell contents of a row | |
| void | setColumn (int i, MWAWColor const *val) |
| sets all cell contents of a column | |
Public Member Functions inherited from MWAWPictBitmap | |
| ~MWAWPictBitmap () override | |
| destructor | |
| Type | getType () const override |
| returns the picture type | |
| bool | getBinary (MWAWEmbeddedObject &picture) const override |
| returns the final picture | |
Public Member Functions inherited from MWAWPict | |
| virtual | ~MWAWPict () |
| virtual destructor | |
| MWAWBox2f | getBdBox () const |
| returns the bdbox of the picture | |
| void | setBdBox (MWAWBox2f const &box) |
| sets the bdbox of the picture | |
Protected Member Functions | |
| bool | createFileData (librevenge::RVNGBinaryData &result) const final |
| the function which creates the result file | |
Protected Member Functions inherited from MWAWPictBitmap | |
| MWAWPictBitmap (MWAWVec2i const &sz) | |
| protected constructor: use check to construct a picture | |
Protected Member Functions inherited from MWAWPict | |
| void | extendBDBox (float val) |
| udaptes the bdbox, by extended it by (val-previousVal) | |
| MWAWPict () | |
| protected constructor must not be called directly | |
| MWAWPict (MWAWPict const &p) | |
| protected constructor must not be called directly | |
| MWAWPict & | operator= (MWAWPict const &p) |
| protected operator= must not be called directly | |
Protected Attributes | |
| MWAWPictBitmapContainer< MWAWColor > | m_data |
| the data | |
| bool | m_hasAlpha |
| true if the bitmap has alpha color | |
Additional Inherited Members | |
Public Types inherited from MWAWPictBitmap | |
| enum | SubType { BW , Indexed , Color } |
| the picture subtype: blackwhite, indexed, color More... | |
Public Types inherited from MWAWPict | |
| enum | Type { PictData , Bitmap , Unknown } |
| the different picture types: More... | |
| enum | ReadResult { MWAW_R_BAD =0 , MWAW_R_OK , MWAW_R_OK_EMPTY , MWAW_R_MAYBE } |
| an enum to defined the result of a parsing use by some picture's classes which can read their data More... | |
Static Protected Member Functions inherited from MWAWPict | |
| static MWAWBox2f | getBdBox (int numPt, MWAWVec2f const *pt) |
| computes the minimum and maximum of a list of point | |
a bitmap of MWAWColor to store true color bitmap
|
inlineexplicit |
the constructor
|
inlinefinalvirtual |
a virtual function used to obtain a strict order, must be redefined in the subs class
Reimplemented from MWAWPictBitmap.
Referenced by cmp().
|
finalprotectedvirtual |
the function which creates the result file
Implements MWAWPictBitmap.
|
inline |
returns a cell content
|
finalvirtual |
returns the average color
Implements MWAWPictBitmap.
|
inline |
returns the cells content of a row
Referenced by getAverageColor().
|
inlinefinalvirtual |
return the picture subtype
Implements MWAWPictBitmap.
|
inline |
the number of columns
|
inline |
the number of rows
|
inline |
|
inline |
sets all cell contents of a column
|
inline |
sets all cell contents of a row
Referenced by CorelPainterParser::readResource(), MacDraftParser::sendBitmap(), and MacDrawParser::sendBitmap().
|
inline |
the picture size
|
inlinefinalvirtual |
returns true if the picture is valid
Reimplemented from MWAWPictBitmap.
Referenced by ApplePictParserInternal::Pixmap::get(), and MacDraft5StyleManagerInternal::Pixmap::get().
|
protected |
the data
Referenced by createFileData(), and getAverageColor().
|
protected |
true if the bitmap has alpha color
Referenced by createFileData().