LibreOffice Module vcl (master) 1
|
#include <BitmapColorQuantizationFilter.hxx>
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) |
Definition at line 16 of file BitmapColorQuantizationFilter.hxx.
|
inline |
Reduce number of colors for the bitmap using the POPULAR algorithm.
nNewColorCount | Maximal number of bitmap colors after the reduce operation |
Definition at line 24 of file BitmapColorQuantizationFilter.hxx.
Implements BitmapFilter.
Definition at line 22 of file BitmapColorQuantizationFilter.cxx.
References aMap, BitmapPalette::GetBestIndex(), BitmapEx::GetBitmap(), Color::GetBlue(), Color::GetGreen(), BitmapReadAccess::GetIndexFromData(), BitmapInfoAccess::GetPaletteColor(), Bitmap::getPixelFormat(), BitmapReadAccess::GetPixelFromData(), Bitmap::GetPrefMapMode(), Bitmap::GetPrefSize(), Color::GetRed(), BitmapReadAccess::GetScanline(), Bitmap::GetSizePixel(), BitmapInfoAccess::HasPalette(), BitmapInfoAccess::Height(), BitmapColorQuantizationFilter::PopularColorCount::mnIndex, mnNewColorCount, n, vcl::N8_BPP, nIndex, vcl::numberOfColors(), vcl::ScopedBitmapAccess< Access, Bitmap, Acquire >::reset(), BitmapColor::SetIndex(), Bitmap::SetPrefMapMode(), Bitmap::SetPrefSize(), and BitmapInfoAccess::Width().
|
private |
Definition at line 32 of file BitmapColorQuantizationFilter.hxx.
Referenced by execute().