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:
[legend]
Collaboration diagram for BitmapColorQuantizationFilter:
[legend]

Classes

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)
inline

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

Parameters
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
overridevirtual

Member Data Documentation

◆ mnNewColorCount

sal_uInt16 BitmapColorQuantizationFilter::mnNewColorCount
private

Definition at line 32 of file BitmapColorQuantizationFilter.hxx.

Referenced by execute().


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