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

#include <BitmapSimpleColorQuantizationFilter.hxx>

Inheritance diagram for BitmapSimpleColorQuantizationFilter:
Collaboration diagram for BitmapSimpleColorQuantizationFilter:

Public Member Functions

 BitmapSimpleColorQuantizationFilter (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 BitmapSimpleColorQuantizationFilter.hxx.

Constructor & Destructor Documentation

◆ BitmapSimpleColorQuantizationFilter()

BitmapSimpleColorQuantizationFilter::BitmapSimpleColorQuantizationFilter ( 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 BitmapSimpleColorQuantizationFilter.hxx.

Member Function Documentation

◆ execute()

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

Member Data Documentation

◆ mnNewColorCount

sal_uInt16 BitmapSimpleColorQuantizationFilter::mnNewColorCount

Definition at line 32 of file BitmapSimpleColorQuantizationFilter.hxx.

Referenced by execute().

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