LibreOffice Module vcl (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
BitmapColorQuantizationFilter Class Referencefinal

#include <BitmapColorQuantizationFilter.hxx>

Inheritance diagram for BitmapColorQuantizationFilter:
Collaboration diagram for BitmapColorQuantizationFilter:


struct  PopularColorCount

Public Member Functions

 BitmapColorQuantizationFilter (sal_uInt16 nNewColorCount)
 Reduce number of colors for the bitmap using the POPULAR algorithm. More...
virtual BitmapEx execute (BitmapEx const &rBitmapEx) const override
- Public Member Functions inherited from BitmapFilter
 BitmapFilter ()
virtual ~BitmapFilter ()
virtual BitmapEx execute (BitmapEx const &rBitmapEx) const =0

Private Attributes

sal_uInt16 mnNewColorCount

Additional Inherited Members

- Static Public Member Functions inherited from BitmapFilter
static bool Filter (BitmapEx &rBmpEx, BitmapFilter const &rFilter)
static bool Filter (Animation &rBmpEx, BitmapFilter const &rFilter)

Detailed Description

Definition at line 16 of file BitmapColorQuantizationFilter.hxx.

Constructor & Destructor Documentation

◆ BitmapColorQuantizationFilter()

BitmapColorQuantizationFilter::BitmapColorQuantizationFilter ( sal_uInt16  nNewColorCount)

Reduce number of colors for the bitmap using the POPULAR algorithm.

nNewColorCountMaximal number of bitmap colors after the reduce operation

Definition at line 24 of file BitmapColorQuantizationFilter.hxx.

Member Function Documentation

◆ execute()

BitmapEx BitmapColorQuantizationFilter::execute ( BitmapEx const &  rBitmapEx) const

Member Data Documentation

◆ mnNewColorCount

sal_uInt16 BitmapColorQuantizationFilter::mnNewColorCount

Definition at line 32 of file BitmapColorQuantizationFilter.hxx.

Referenced by execute().

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