28 const sal_Int32 nSepia
29 = 10000 - 100 * std::clamp(
mnSepiaPercent, sal_uInt16(0), sal_uInt16(100));
32 for (sal_uInt16
i = 0;
i < 256;
i++)
48 const sal_Int32 nWidth = pWriteAcc->Width();
49 const sal_Int32 nHeight = pWriteAcc->Height();
54 std::unique_ptr<sal_uInt8[]> pIndexMap(
new sal_uInt8[nPalCount]);
55 for (sal_uInt16
i = 0;
i < nPalCount;
i++)
60 for (sal_Int32 nY = 0; nY < nHeight; nY++)
62 Scanline pScanline = pWriteAcc->GetScanline(nY);
64 for (sal_Int32 nX = 0; nX < nWidth; nX++)
67 pWriteAcc->SetPixelOnData(pScanline, nX, aCol);
73 for (sal_Int32 nY = 0; nY < nHeight; nY++)
75 Scanline pScanline = pWriteAcc->GetScanline(nY);
77 for (sal_Int32 nX = 0; nX < nWidth; nX++)
80 pWriteAcc->SetPixelOnData(pScanline, nX, aCol);
void SetIndex(sal_uInt8 cIndex)
Bitmap GetBitmap(Color aTransparentReplaceColor) const
sal_uInt16 GetPaletteEntryCount() 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
virtual BitmapEx execute(BitmapEx const &rBitmapEx) const override
sal_uInt16 mnSepiaPercent
void SetPrefMapMode(const MapMode &rMapMode)
const MapMode & GetPrefMapMode() const
Size GetSizePixel() const
void SetPrefSize(const Size &rSize)
const Size & GetPrefSize() const
sal_uInt8 GetLuminance() const
void SetGreen(sal_uInt8 nGreen)
void SetRed(sal_uInt8 nRed)
void SetBlue(sal_uInt8 nBlue)
HashMap_OWString_Interface aMap