#include <BitmapSimpleColorQuantizationFilter.hxx>
◆ BitmapSimpleColorQuantizationFilter()
BitmapSimpleColorQuantizationFilter::BitmapSimpleColorQuantizationFilter |
( |
sal_uInt16 |
nNewColorCount | ) |
|
|
inline |
Reduce number of colors for the bitmap using the POPULAR algorithm.
- Parameters
-
nNewColorCount | Maximal number of bitmap colors after the reduce operation |
Definition at line 24 of file BitmapSimpleColorQuantizationFilter.hxx.
◆ execute()
BitmapEx BitmapSimpleColorQuantizationFilter::execute |
( |
BitmapEx const & |
rBitmapEx | ) |
const |
|
overridevirtual |
Implements BitmapFilter.
Definition at line 18 of file BitmapSimpleColorQuantizationFilter.cxx.
References aMap, Octree::GetBestPaletteIndex(), BitmapEx::GetBitmap(), BitmapReadAccess::GetIndexFromData(), Octree::GetPalette(), BitmapInfoAccess::GetPaletteColor(), Bitmap::getPixelFormat(), BitmapReadAccess::GetPixelFromData(), Bitmap::GetPrefMapMode(), Bitmap::GetPrefSize(), BitmapReadAccess::GetScanline(), Bitmap::GetSizePixel(), BitmapInfoAccess::HasPalette(), BitmapInfoAccess::Height(), mnNewColorCount, vcl::N8_BPP, vcl::numberOfColors(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), Bitmap::SetPrefMapMode(), Bitmap::SetPrefSize(), and BitmapInfoAccess::Width().
◆ mnNewColorCount
sal_uInt16 BitmapSimpleColorQuantizationFilter::mnNewColorCount |
|
private |
The documentation for this class was generated from the following files: