21 if (sal_uInt16(ePixelFormat) < 8)
26 Bitmap aGrey(aSize, ePixelFormat, pPal);
34 for (sal_Int32 nY = 0; nY < sal_Int32(aSize.
Height()); ++nY)
36 Scanline pGreyScan = pGrey->GetScanline(nY);
39 for (sal_Int32 nX = 0; nX < sal_Int32(aSize.
Width()); ++nX)
45 pGrey->SetPixelOnData(pGreyScan, nX, aGreyValue);
virtual BitmapEx execute(BitmapEx const &rBitmapEx) const override
const AlphaMask & GetAlphaMask() const
vcl::PixelFormat getPixelFormat() const
Bitmap GetBitmap(Color aTransparentReplaceColor) const
const Size & GetSizePixel() const
BitmapColor GetPixelFromData(const sal_uInt8 *pData, tools::Long nX) const
Scanline GetScanline(tools::Long nY) const
static const BitmapPalette & GetGreyPalette(int nEntries)
sal_uInt8 GetLuminance() const
sal_uInt8 GetAlpha() const
constexpr tools::Long Height() const
constexpr tools::Long Width() const
This template handles BitmapAccess the RAII way.
constexpr bool isPalettePixelFormat(PixelFormat ePixelFormat)
Is it a pixel format that forces creation of a palette.