MWAWPictBitmap Class Referenceabstract

Generic class used to construct bitmap. More...

`#include <MWAWPictBitmap.hxx>`

Inheritance diagram for MWAWPictBitmap:

## Public Types

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

## Public Member Functions

| ~MWAWPictBitmap () override
| destructor
Type | getType () const override
| returns the picture type
virtual SubType | getSubType () const =0
| returns the picture subtype
bool | getBinary (MWAWEmbeddedObject &picture) const override
| returns the final picture
virtual bool | valid () const
| returns true if the picture is valid
virtual MWAWColor | getAverageColor () const =0
| returns the average color
int | cmp (MWAWPict const &a) const override
| a virtual function used to obtain a strict order, must be redefined in the subs class
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

virtual bool | createFileData (librevenge::RVNGBinaryData &result) const =0
| abstract function which creates the result file
| 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

## Additional Inherited Members

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

## Detailed Description

Generic class used to construct bitmap.

## Member Enumeration Documentation

## SubType

enum MWAWPictBitmap::SubType

the picture subtype: blackwhite, indexed, color

Enumerator
BW |
Indexed |
Color |

## Constructor & Destructor Documentation

## ~MWAWPictBitmap()

MWAWPictBitmap::~MWAWPictBitmap | ( |  | ) |

override

destructor

## MWAWPictBitmap()

MWAWPictBitmap::MWAWPictBitmap | ( | MWAWVec2i const & | sz | ) |

inline explicit protected

protected constructor: use check to construct a picture

Referenced by cmp(), MWAWPictBitmapBW::MWAWPictBitmapBW(), MWAWPictBitmapColor::MWAWPictBitmapColor(), and MWAWPictBitmapIndexed::MWAWPictBitmapIndexed().

## Member Function Documentation

## cmp()

int MWAWPictBitmap::cmp | ( | MWAWPict const & | a | ) | const

inline override virtual

a virtual function used to obtain a strict order, must be redefined in the subs class

Reimplemented from MWAWPict.

Reimplemented in MWAWPictBitmapBW, MWAWPictBitmapColor, and MWAWPictBitmapIndexed.

Referenced by MWAWPictBitmapBW::cmp(), MWAWPictBitmapColor::cmp(), and MWAWPictBitmapIndexed::cmp().

## createFileData()

virtual bool MWAWPictBitmap::createFileData | ( | librevenge::RVNGBinaryData & | result | ) | const

protected pure virtual

abstract function which creates the result file

Implemented in MWAWPictBitmapBW, MWAWPictBitmapColor, and MWAWPictBitmapIndexed.

Referenced by getBinary().

## getAverageColor()

virtual MWAWColor MWAWPictBitmap::getAverageColor | ( |  | ) | const

pure virtual

returns the average color

Implemented in MWAWPictBitmapBW, MWAWPictBitmapColor, and MWAWPictBitmapIndexed.

## getBinary()

bool MWAWPictBitmap::getBinary | ( | MWAWEmbeddedObject & | picture | ) | const

inline override virtual

returns the final picture

Reimplemented from MWAWPict.

Referenced by ApplePictParserInternal::Bitmap::get(), ApplePictParserInternal::Pixmap::get(), MacDraft5StyleManagerInternal::Pixmap::get(), MWAWGraphicStyle::Pattern::getBinary(), CanvasGraph::getBitmap(), DrawTableParser::getBitmap(), CanvasGraph::getBitmapBW(), ScoopParser::readBitmap(), MacDrawProStyleManager::readColorPatterns(), CanvasGraph::readFileBitmap(), Canvas5Structure::readPreview(), CorelPainterParser::readResource(), libmwaw_applepict1::Bitmap::saveBitmap(), MacDraftParser::sendBitmap(), MacDrawParser::sendBitmap(), and RagTimeParser::sendBitmap().

## getSubType()

virtual SubType MWAWPictBitmap::getSubType | ( |  | ) | const

pure virtual

returns the picture subtype

Implemented in MWAWPictBitmapBW, MWAWPictBitmapColor, and MWAWPictBitmapIndexed.

Referenced by cmp().

## getType()

Type MWAWPictBitmap::getType | ( |  | ) | const

inline override virtual

returns the picture type

Implements MWAWPict.

## valid()

virtual bool MWAWPictBitmap::valid | ( |  | ) | const

inline virtual

returns true if the picture is valid

Reimplemented in MWAWPictBitmapBW, MWAWPictBitmapColor, and MWAWPictBitmapIndexed.

Referenced by getBinary().

The documentation for this class was generated from the following files:

- MWAWPictBitmap.hxx
- MWAWPictBitmap.cxx