30 const sal_uInt16 nColorCount = std::min(
mnNewColorCount, sal_uInt16(256));
33 Octree aOct(*pRAcc, nColorCount);
41 const sal_Int32 nWidth = pRAcc->
Width();
42 const sal_Int32 nHeight = pRAcc->
Height();
46 for (sal_Int32 nY = 0; nY < nHeight; nY++)
48 Scanline pScanline = pWAcc->GetScanline(nY);
50 for (sal_Int32 nX = 0; nX < nWidth; nX++)
53 pWAcc->SetPixelOnData(
61 for (sal_Int32 nY = 0; nY < nHeight; nY++)
63 Scanline pScanline = pWAcc->GetScanline(nY);
65 for (sal_Int32 nX = 0; nX < nWidth; nX++)
68 pWAcc->SetPixelOnData(
Bitmap GetBitmap(Color aTransparentReplaceColor) const
tools::Long Height() const
tools::Long Width() const
const BitmapColor & GetPaletteColor(sal_uInt16 nColor) const
BitmapColor GetPixelFromData(const sal_uInt8 *pData, tools::Long nX) const
sal_uInt8 GetIndexFromData(const sal_uInt8 *pData, tools::Long nX) const
Scanline GetScanline(tools::Long nY) const
sal_uInt16 mnNewColorCount
virtual BitmapEx execute(BitmapEx const &rBitmapEx) const override
void SetPrefMapMode(const MapMode &rMapMode)
const MapMode & GetPrefMapMode() const
Size GetSizePixel() const
void SetPrefSize(const Size &rSize)
const Size & GetPrefSize() const
vcl::PixelFormat getPixelFormat() const
sal_uInt16 GetBestPaletteIndex(const BitmapColor &rColor)
const BitmapPalette & GetPalette()
constexpr sal_Int64 numberOfColors(PixelFormat ePixelFormat)
HashMap_OWString_Interface aMap